T_Cyjb_Collections_ListUtil - CYJB/Cyjb GitHub Wiki

ListUtil 类

提供对 IList(T) 的扩展方法。

继承层次

System.Object
  Cyjb.Collections.ListUtil
Namespace: Cyjb.Collections
Assembly: Cyjb (in Cyjb.dll) Version: 1.0.23+7750dd8e971297c5fa962a3bee37fb78f72793f6

语法

C#

public static class ListUtil

The ListUtil type exposes the following members.

方法

 

名称 说明
公共方法静态成员 AsReadOnly(T) 返回当前列表的只读包装。
公共方法静态成员 BinarySearch(T)(IList(T), T, IComparer(T)) 在指定排序 IList(T) 中搜索特定元素。
公共方法静态成员 BinarySearch(T)(IList(T), Int32, Int32, T, IComparer(T)) 在排序 IList(T) 的某个元素范围中搜索值。
公共方法静态成员 BinarySearch(TSource, TResult)(IList(TSource), TResult, Func(TSource, TResult), IComparer(TResult)) 在整个排序 IList(T) 中搜索特定元素。
公共方法静态成员 BinarySearch(TSource, TResult)(IList(TSource), Int32, Int32, TResult, Func(TSource, TResult), IComparer(TResult)) 在排序 IList(T) 的某个范围中搜索特定元素。
公共方法静态成员 Empty(T) 返回一个空的只读列表。
公共方法静态成员 InsertRange(T) 将指定集合的元素插入到当前列表的指定索引处。
公共方法静态成员 NextPermutation(T) 将当前列表中的元素变换为下一排列。
公共方法静态成员 PrevPermutation(T) 将当前列表中的元素变换为上一排列。
公共方法静态成员 Reverse(T)(IList(T)) 翻转指定的列表。
公共方法静态成员 Reverse(T)(IList(T), Int32, Int32) 翻转指定列表的指定部分。
公共方法静态成员 Suffle(T) 随机打乱当前列表中元素的顺序。
  Back to Top

参见

Reference

Cyjb.Collections 命名空间

⚠️ **GitHub.com Fallback** ⚠️