Explicit Casting Problem

后端 未结 3 1726
轻奢々
轻奢々 2020-12-04 04:22
// The Structure of the Container and the items
public interface IContainer  where TItem : IItem
{

}

public class AContainer : IContainer         


        
3条回答
  •  执笔经年
    2020-12-04 05:02

    You can also consider Simulated Covariance for .NET Generics by Krzysztof Cwalina

提交回复
热议问题