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 ius = new List ();
or this:
List us = new List ();
anyway impossible!
anyone would like to give me some suggestions?
本文探讨了在 .NET 2.0 中使用 C# 泛型时遇到的问题,特别是在混合使用泛型与接口的情况下。作者尝试了几种不同的代码实现方式,但都遇到了困难。

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



