摘要:
泛型接口:IEnumerable<T>,IComparable<T>等泛型方法:把T泛型类型作为方法参数,用于参数和变量;不需要赋予泛型类型,可以像普通方法那样调用泛型方法以计数器为例,代码如下:IAccount usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;namespace泛型方法{publicinterfaceIAccount{decimalBalance{get;}stringName{get;}}}Account usingSystem;usingSy 阅读全文
posted @ 2011-04-05 18:09
任银
阅读(205)
评论(0)
推荐(0)
浙公网安备 33010602011771号