Resolved: Using generic interface in a generic class 0 By Isaac Tonny on 17/06/2022 Issue Share Facebook Twitter LinkedIn Question: How force to use class that implement generic interface in class? Is something like this possible? public interface IGeneric { T Value {get;} } //public class MyList> {}//not allowed Answer: Something like this: void Main() { MyList myList = new MyList(new Generic()); } public interface IGeneric { T Value { get; } } public class MyList { private IGeneric _generic; public MyList(IGeneric generic) { _generic = generic; } } public class Generic : IGeneric { public string Value => throw new NotImplementedException(); } Or like this: void Main() { MyList myList = new MyList(); //Or MyList, string> myList = new MyList, string>(); } public interface IGeneric { T Value { get; } } public class MyList where G : IGeneric { } public class Generic : IGeneric { public string Value => throw new NotImplementedException(); } If you have better answer, please add a comment about this, thank you! c# generics interface list