- Capacity
- Count
- Contains
- TrimExcess
- TryGetValue
- TrySetValue
- Add
- AddRange
- Insert
- InsertRange
- CopyTo
- BinarySearch
- IndexOf
- LastIndexOf
- Clear
- Remove
- RemoveAt
- RemoveRange
- Reverse
- Sort
Sort
排序列表元素。
排列列表中所有元素顺序的版本。
bool Sort(); |
这个版本使用实施IComparable<T>接口的类排列列表所有元素顺序进行比较元素。
bool Sort(
|
这个版本使用实施IComparable<T>接口的类排列列表指定元素范围顺序进行比较元素。
bool Sort(
|
参数
*comparer
[in] 接口用于比较元素。
start_index
[in] 排列顺序开始的索引起始点。
count
[in] 排序范围的长度。
返回值
成功返回true,否则返回false。