CollectionExtensions Class
提供一组集合扩展方法的静态类。
Public Methods |
| CastToListTFrom, TTo |
将一个强类型列表强制转换为另一个类型的强类型列表。
|
| CastToListSafelyTFrom, TTo |
将一个强类型列表转换为另一个类型的强类型列表。
|
| MergeTKey, TValue |
合并字典,Key 相同的后者覆盖前者的 Value。
|
| MoveItem(IList, int, MovingDirection) |
移动列表中的指定元素。
|
| MoveItemT(IListT, int, MovingDirection) |
移动强类型列表中的指定元素。
|
| RemoveItemsT |
移除强类型集合中满足指定条件的所有元素。
|
| SortT(IListT) |
使用默认比较器对列表中的元素进行排序。
|
| SortT(IListT, IComparerT) |
使用指定的 IComparerT 实现对列表中的元素进行排序。
|
| SortT(IListT, ComparisonT) |
使用指定的 ComparisonT 对列表中的元素进行排序。
|
| SortT(IListT, int, int, IComparerT) |
使用指定的 IComparerT 实现对列表某个范围内的元素进行排序。
|
| SwapItem(IList, int, int) |
交换列表中两个元素的位置。
|
| SwapItemT(IListT, int, int) |
交换强类型列表中两个元素的位置。
|