Array.IndexOf(Array array, object value) |
查找指定值第一次出现的索引 |
int |
array: 要搜索的数组
value: 要查找的值 |
Array.IndexOf(Array array, object value, int startIndex) |
从指定索引开始查找指定值第一次出现的索引 |
int |
array: 要搜索的数组
value: 要查找的值
startIndex: 开始搜索的索引 |
Array.IndexOf(Array array, object value, int startIndex, int count) |
从指定索引开始,在指定范围内查找指定值第一次出现的索引 |
int |
array: 要搜索的数组
value: 要查找的值
startIndex: 开始搜索的索引
count: 要搜索的元素数量 |
Array.LastIndexOf(Array array, object value) |
查找指定值最后一次出现的索引 |
int |
array: 要搜索的数组
value: 要查找的值 |
Array.LastIndexOf(Array array, object value, int startIndex) |
从指定索引开始向前查找指定值最后一次出现的索引 |
int |
array: 要搜索的数组
value: 要查找的值
startIndex: 开始搜索的索引 |
Array.LastIndexOf(Array array, object value, int startIndex, int count) |
从指定索引开始,在指定范围内向前查找指定值最后一次出现的索引 |
int |
array: 要搜索的数组
value: 要查找的值
startIndex: 开始搜索的索引
count: 要搜索的元素数量 |
Array.BinarySearch(Array array, object value) |
在已排序数组中执行二分查找 |
int |
array: 已排序的数组
value: 要查找的值 |
Array.BinarySearch(Array array, int index, int length, object value) |
在已排序数组的指定范围内执行二分查找 |
int |
array: 已排序的数组
index: 搜索范围的起始索引
length: 搜索范围的长度
value: 要查找的值 |
Array.Find<T>(T[] array, Predicate<T> match) |
搜索匹配指定条件的第一个元素 |
T |
array: 要搜索的数组
match: 定义搜索条件的委托 |
Array.FindAll<T>(T[] array, Predicate<T> match) |
搜索匹配指定条件的所有元素 |
T[] |
array: 要搜索的数组
match: 定义搜索条件的委托 |
Array.FindIndex<T>(T[] array, Predicate<T> match) |
搜索匹配条件的第一个元素的索引 |
int |
array: 要搜索的数组
match: 定义搜索条件的委托 |
Array.FindIndex<T>(T[] array, int startIndex, Predicate<T> match) |
从指定索引开始搜索匹配条件的第一个元素的索引 |
int |
array: 要搜索的数组
startIndex: 开始搜索的索引
match: 定义搜索条件的委托 |
Array.FindIndex<T>(T[] array, int startIndex, int count, Predicate<T> match) |
从指定索引开始,在指定范围内搜索匹配条件的第一个元素的索引 |
int |
array: 要搜索的数组
startIndex: 开始搜索的索引
count: 要搜索的元素数量
match: 定义搜索条件的委托 |
Array.FindLast<T>(T[] array, Predicate<T> match) |
搜索匹配指定条件的最后一个元素 |
T |
array: 要搜索的数组
match: 定义搜索条件的委托 |
Array.FindLastIndex<T>(T[] array, Predicate<T> match) |
搜索匹配条件的最后一个元素的索引 |
int |
array: 要搜索的数组
match: 定义搜索条件的委托 |
Array.FindLastIndex<T>(T[] array, int startIndex, Predicate<T> match) |
从指定索引开始向前搜索匹配条件的最后一个元素的索引 |
int |
array: 要搜索的数组
startIndex: 开始搜索的索引
match: 定义搜索条件的委托 |
Array.FindLastIndex<T>(T[] array, int startIndex, int count, Predicate<T> match) |
从指定索引开始,在指定范围内向前搜索匹配条件的最后一个元素的索引 |
int |
array: 要搜索的数组
startIndex: 开始搜索的索引
count: 要搜索的元素数量
match: 定义搜索条件的委托 |
Array.Exists<T>(T[] array, Predicate<T> match) |
确定数组是否包含匹配条件的元素 |
bool |
array: 要搜索的数组
match: 定义搜索条件的委托 |