您的位置:首页 > 其它

使用泛型类型System.Collections.Generic.Icomparer <T> 需要一个类型参数

2011-05-13 17:05 1201 查看
.net2005中报错:“使用泛型类型System.Collections.Generic.Icomparer <T> 需要一个类型参数 ”

解决方法:using了System.Collections.Generic,造成class ListViewItemComparer : IComparer这一行中的IComparer被认为是System.Collections.Generic.Icomparer <T> ,所以要实现int Compare (T x,T y),或者把using中改为System.Collections

System.Collections.Generic:泛型

System.Collections :非泛型
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐