摘要:
其实重点在于实现 IComparer 接口,实现按照自已的来排序classEntity{publicEntity(){}privateintid;publicintId{get{returnid;}set{id=value;}}privatestringname;publicstringName{get{returnname;}set{name=value;}}privatedoubleprice;publicdoublePrice{get{returnprice;}set{price=value;}}}然后写一个对象比较的类,实现IComparer<T>接口。internalcl 阅读全文
posted @ 2010-03-24 21:09 codingsilence 阅读(289) 评论(0) 推荐(0) 编辑