摘要:
调整数据列表内的顺序,现写成扩展方法工具类 public static class CollectionHelper { //交换List项的顺序 public static bool ExchangeOrder<T>(this IList<T> list, int sourceID, int newID) { if (sourceID >= list.Count || sourceID < 0 || newID >= list.Count || newID < 0 || sourceID == newID) retu... 阅读全文
posted @ 2012-06-18 12:10 work hard work smart 阅读(639) 评论(0) 推荐(0) 编辑