摘要:
(转自:http://www.cnblogs.com/bradwarden/archive/2012/06/19/2554854.html)第一种:实体类实现IComparable接口,而且必须实现CompareTo方法实体类定义如下: 1 class Info:IComparable 2 { 3 public int Id { get; set; } 4 public string Name { get; set; } 5 6 public int CompareTo(object obj) { 7 int... 阅读全文