摘要:
where C# 语言参考where(C# 参考)where 子句用于指定类型约束,这些约束可以作为泛型声明中定义的类型参数的变量。例如,可以声明一个泛型类 MyGenericClass,这样,类型参数 T 就可以实现 IComparable<T> 接口:public class MyGenericClass<T> where T:IComparable { }除了接口约束... 阅读全文
posted @ 2009-11-12 10:00
Gsun
阅读(282)
评论(0)
推荐(0)

浙公网安备 33010602011771号