Since OO age ,we were used to cast a interface from Instance class, like this:
Iuser iu=new User();
that's natural and easy , i like it;
however in .NET2.0 , have a new&hot feature call "generic" ,can write code less than beforetime,
but,when i try to write some code mixing interface/instance & generic , i got a big problem
this :
List<Iuser > ius = new List<User>();
or this:
List<user> us = new List<Iuser >();
anyway impossible!
anyone would like to give me some suggestions?

本文讨论了在.NET 2.0中使用泛型特性时遇到的问题,特别是混合使用接口与具体类实例时出现的编译错误,并寻求解决这些问题的方法。

被折叠的 条评论
为什么被折叠?



