C# CONCEPTS
Generic Interfaces - .Net
C# compiler allows using interfaces generic types.
Published in
2 min readJun 4, 2021
Learning Objective
- How to create generic interfaces of type T
- How to implements a generic interface in a non-generic class
- How to implements a generic interface in a generic class
Prerequisites
Please go through the basic concepts of generics for a better understanding of the article.
Getting Started
Let us understand how to create an interface of type T. A blank interface will look like this.
public interface ITest<T> { }