C#,List<T> 与 Vector<T>
List<T> 是 C# 中最常用的动态数组实现,位于 System.Collections.Generic 命名空间。
Add(T) | 将对象添加到 List<T>的末尾。 |
AddRange(IEnumerable<T>) | 将指定集合的元素添加到 List<T>的末尾。 |
AsReadOnly() | 返回当前集合的只读 ReadOnlyCollection<T> 包装器。 |
BinarySearch(Int32, Int32, T, IComparer<T>) | 使用指定的比较器在排序 List<T> 中搜索元素的范围,并返回元素的从零开始的索引。 |
BinarySearch(T) | 使用默认比较器搜索整个排序 List<T> 元素,并返回元素的从零开始的索引。 |
BinarySearch(T, IComparer<T>) | 使用指定的比较器搜索整个排序 List<T> 元素,并返回该元素的从零开始的索引。 |
Clear() | 从 List<T>中删除所有元素。 |
Contains(T) | 确定元素是否在 List<T>中。 |
ConvertAll<TOutput>(Converter<T,TOutput>) | 将当前 List<T> 中的元素转换为另一种类型,并返回包含转换后的元素的列表。 |
CopyTo(Int32, T[], Int32, Int32) | 从 List<T> 到兼容的一维数组(从目标数组的指定索引开始)复制一系列元素。 |
CopyTo(T[]) | 从目标数组的开头开始,将整个 List<T> 复制到兼容的一维数组。 |
CopyTo(T[], Int32) | 将整个 List<T> 复制到兼容的一维数组,从目标数组的指定索引处开始。 |
EnsureCapacity(Int32) | 确保此列表的容量至少为指定的 |
Equals(Object) | 确定指定的对象是否等于当前对象。 (继承自 Object) |
Exists(Predicate<T>) | 确定 List<T> 是否包含与指定谓词定义的条件匹配的元素。 |
Find(Predicate<T>) | 搜索与指定谓词定义的条件匹配的元素,并返回整个 List<T>中的第一个匹配项。 |
FindAll(Predicate<T>) | 检索与指定谓词定义的条件匹配的所有元素。 |
FindIndex(Int32, Int32, Predicate<T>) | 搜索与指定谓词定义的条件匹配的元素,并返回从指定索引开始且包含指定数量的元素的 List<T> 中第一个匹配项的从零开始的索引。 |
FindIndex(Int32, Predicate<T>) | 搜索与指定谓词定义的条件匹配的元素,并在从指定索引扩展到最后一个元素的 List<T> 元素范围内返回第一个匹配项的从零开始的索引。 |
FindIndex(Predicate<T>) | 搜索与指定谓词定义的条件匹配的元素,并返回整个 List<T>中第一个匹配项的从零开始的索引。 |
FindLast(Predicate<T>) | 搜索与指定谓词定义的条件匹配的元素,并返回整个 List<T>中的最后一个匹配项。 |
FindLastIndex(Int32, Int32, Predicate<T>) | 搜索与指定谓词定义的条件匹配的元素,并返回 List<T> 中最后一个匹配项的从零开始的索引,该索引包含指定数量的元素并在指定索引处结束。 |
FindLastIndex(Int32, Predicate<T>) | 搜索与指定谓词定义的条件匹配的元素,并返回从第一个元素扩展到指定索引的 List<T> 中最后一个匹配项的从零开始的索引。 |
FindLastIndex(Predicate<T>) | 搜索与指定谓词定义的条件匹配的元素,并返回整个 List<T>中最后一个匹配项的从零开始的索引。 |
ForEach(Action<T>) | 对 List<T>的每个元素执行指定的操作。 |
GetEnumerator() | 返回循环访问 List<T>的枚举数。 |
GetHashCode() | 用作默认哈希函数。 (继承自 Object) |
GetRange(Int32, Int32) | 在源 List<T>中创建一系列元素的浅表副本。 |
GetType() | 获取当前实例的 Type。 (继承自 Object) |
IndexOf(T) | 搜索指定的对象,并返回整个 List<T>中第一个匹配项的从零开始的索引。 |
IndexOf(T, Int32) | 搜索指定的对象,并返回从指定索引扩展到最后一个元素的 List<T> 中第一个匹配项的从零开始的索引。 |
IndexOf(T, Int32, Int32) | 搜索指定的对象,并返回从指定索引开始且包含指定数量的元素的 List<T> 中第一个匹配项的从零开始的索引。 |
Insert(Int32, T) | 将元素插入指定索引处的 List<T>。 |
InsertRange(Int32, IEnumerable<T>) | 将集合的元素插入到指定索引处的 List<T> 中。 |
LastIndexOf(T) | 搜索指定的对象,并返回整个 List<T>中最后一个匹配项的从零开始的索引。 |
LastIndexOf(T, Int32) | 搜索指定的对象,并返回从第一个元素扩展到指定索引的 List<T> 中最后一个匹配项的从零开始的索引。 |
LastIndexOf(T, Int32, Int32) | 搜索指定的对象,并返回 List<T> 中包含指定数量的元素并在指定索引处结束的最后一个匹配项的从零开始的索引。 |
MemberwiseClone() | 创建当前 Object的浅表副本。 (继承自 Object) |
Remove(T) | 从 List<T>中删除特定对象的第一个匹配项。 |
RemoveAll(Predicate<T>) | 删除与指定谓词定义的条件匹配的所有元素。 |
RemoveAt(Int32) | 移除 List<T>的指定索引处的元素。 |
RemoveRange(Int32, Int32) | 从 List<T>中删除一系列元素。 |
Reverse() | 反转整个 List<T>中的元素的顺序。 |
Reverse(Int32, Int32) | 反转指定区域中元素的顺序。 |
Slice(Int32, Int32) | 在源 List<T>中创建一系列元素的浅表副本。 |
Sort() | 使用默认比较器对整个 List<T> 中的元素进行排序。 |
Sort(Comparison<T>) | 使用指定的 Comparison<T>对整个 List<T> 中的元素进行排序。 |
Sort(IComparer<T>) | 使用指定的比较器对整个 List<T> 中的元素进行排序。 |
Sort(Int32, Int32, IComparer<T>) | 使用指定的比较器对 List<T> 中一系列元素中的元素进行排序。 |
ToArray() | 将 List<T> 的元素复制到新数组。 |
ToString() | 返回一个表示当前对象的字符串。 (继承自 Object) |
TrimExcess() | 将容量设置为 List<T>中实际元素数(如果该数字小于阈值)。 |
TrueForAll(Predicate<T>) | 确定 List<T> 中的每个元素是否与指定谓词定义的条件匹配。 |
ICollection.CopyTo(Array, Int32) | 从特定 Array 索引开始,将 ICollection 的元素复制到 Array。 |
ICollection.IsSynchronized | 获取一个值,该值指示是否同步对 ICollection 的访问(线程安全)。 |
ICollection.SyncRoot | 获取可用于同步对 ICollection的访问的对象。 |
ICollection<T>.IsReadOnly | 获取一个值,该值指示 ICollection<T> 是否为只读。 |
IEnumerable.GetEnumerator() | 返回循环访问集合的枚举器。 |
IEnumerable<T>.GetEnumerator() | 返回循环访问集合的枚举器。 |
IList.Add(Object) | 将项添加到 IList。 |
IList.Contains(Object) | 确定 IList 是否包含特定值。 |
IList.IndexOf(Object) | 确定 IList中特定项的索引。 |
IList.Insert(Int32, Object) | 将项插入到指定索引处的 IList。 |
IList.IsFixedSize | 获取一个值,该值指示 IList 是否具有固定大小。 |
IList.IsReadOnly | 获取一个值,该值指示 IList 是否为只读。 |
IList.Item[Int32] | 获取或设置指定索引处的元素。 |
IList.Remove(Object) | 从 IList中删除特定对象的第一个匹配项。 |
ToFrozenDictionary<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>, IEqualityComparer<TKey>) | 根据指定的键选择器函数从 IEnumerable<T> 创建 FrozenDictionary<TKey,TValue>。 |
ToFrozenDictionary<TSource,TKey,TElement>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TElement>, IEqualityComparer<TKey>) | 根据指定的键选择器和元素选择器函数从 IEnumerable<T> 创建 FrozenDictionary<TKey,TValue>。 |
ToFrozenSet<T>(IEnumerable<T>, IEqualityComparer<T>) | 创建具有指定值的 FrozenSet<T>。 |
AddRange<T>(List<T>, ReadOnlySpan<T>) | 将指定范围的元素添加到 List<T>的末尾。 |
AsReadOnly<T>(IList<T>) | 返回指定列表的只读 ReadOnlyCollection<T> 包装器。 |
CopyTo<T>(List<T>, Span<T>) | 将整个 List<T> 复制到范围。 |
InsertRange<T>(List<T>, Int32, ReadOnlySpan<T>) | 将跨度的元素插入到指定索引处的 List<T> 中。 |
ToImmutableArray<TSource>(IEnumerable<TSource>) | 从指定的集合创建不可变数组。 |
ToImmutableDictionary<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>) | 从现有元素集合构造不可变字典,将转换函数应用于源键。 |
ToImmutableDictionary<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>, IEqualityComparer<TKey>) | 基于序列的某些转换构造不可变字典。 |
ToImmutableDictionary<TSource,TKey,TValue>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TValue>) | 枚举和转换序列,并生成其内容的不可变字典。 |
ToImmutableDictionary<TSource,TKey,TValue>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TValue>, IEqualityComparer<TKey>) | 枚举和转换序列,并使用指定的键比较器生成其内容的不可变字典。 |
ToImmutableDictionary<TSource,TKey,TValue>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TValue>, IEqualityComparer<TKey>, IEqualityComparer<TValue>) | 枚举和转换序列,并使用指定的键和值比较器生成其内容的不可变字典。 |
ToImmutableHashSet<TSource>(IEnumerable<TSource>) | 枚举序列并生成其内容的不可变哈希集。 |
ToImmutableHashSet<TSource>(IEnumerable<TSource>, IEqualityComparer<TSource>) | 枚举序列,生成其内容的不可变哈希集,并为集类型使用指定的相等比较器。 |
ToImmutableList<TSource>(IEnumerable<TSource>) | 枚举序列并生成其内容的不可变列表。 |
ToImmutableSortedDictionary<TSource,TKey,TValue>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TValue>) | 枚举和转换序列,并生成其内容的不可变排序字典。 |
ToImmutableSortedDictionary<TSource,TKey,TValue>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TValue>, IComparer<TKey>) | 枚举和转换序列,并使用指定的键比较器生成其内容的不可变排序字典。 |
ToImmutableSortedDictionary<TSource,TKey,TValue>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TValue>, IComparer<TKey>, IEqualityComparer<TValue>) | 枚举和转换序列,并使用指定的键和值比较器生成其内容的不可变排序字典。 |
ToImmutableSortedSet<TSource>(IEnumerable<TSource>) | 枚举序列并生成其内容的不可变排序集。 |
ToImmutableSortedSet<TSource>(IEnumerable<TSource>, IComparer<TSource>) | 枚举序列,生成其内容的不可变排序集,并使用指定的比较器。 |
CopyToDataTable<T>(IEnumerable<T>) | 返回一个包含 DataRow 对象副本的 DataTable,给定 IEnumerable<T> 对象的输入 IEnumerable<T> 对象,其中泛型参数 |
CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) | 给定泛型参数 |
CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) | 给定泛型参数 |
Aggregate<TSource>(IEnumerable<TSource>, Func<TSource,TSource,TSource>) | 对序列应用累加器函数。 |
Aggregate<TSource,TAccumulate>(IEnumerable<TSource>, TAccumulate, Func<TAccumulate,TSource,TAccumulate>) | 对序列应用累加器函数。 指定的种子值用作初始累加器值。 |
Aggregate<TSource,TAccumulate,TResult>(IEnumerable<TSource>, TAccumulate, Func<TAccumulate,TSource,TAccumulate>, Func<TAccumulate,TResult>) | 对序列应用累加器函数。 指定的种子值用作初始累加器值,并且指定函数用于选择结果值。 |
AggregateBy<TSource,TKey,TAccumulate>(IEnumerable<TSource>, Func<TSource, TKey>, TAccumulate, Func<TAccumulate,TSource,TAccumulate>, IEqualityComparer<TKey>) | 表示可由索引访问的强类型对象列表。 提供用于搜索、排序和操作列表的方法。 |
AggregateBy<TSource,TKey,TAccumulate>(IEnumerable<TSource>, Func<TSource, TKey>, Func<TKey,TAccumulate>, Func<TAccumulate,TSource,TAccumulate>, IEqualityComparer<TKey>) | 表示可由索引访问的强类型对象列表。 提供用于搜索、排序和操作列表的方法。 |
All<TSource>(IEnumerable<TSource>, Func<TSource,Boolean>) | 确定序列的所有元素是否满足条件。 |
Any<TSource>(IEnumerable<TSource>) | 确定序列是否包含任何元素。 |
Any<TSource>(IEnumerable<TSource>, Func<TSource,Boolean>) | 确定序列的任何元素是否满足条件。 |
Append<TSource>(IEnumerable<TSource>, TSource) | 将值追加到序列的末尾。 |
AsEnumerable<TSource>(IEnumerable<TSource>) | 返回类型化为 IEnumerable<T>的输入。 |
Average<TSource>(IEnumerable<TSource>, Func<TSource,Decimal>) | 计算通过对输入序列的每个元素调用转换函数获得的 Decimal 值的序列的平均值。 |
Average<TSource>(IEnumerable<TSource>, Func<TSource,Double>) | 计算通过对输入序列的每个元素调用转换函数获得的 Double 值的序列的平均值。 |
Average<TSource>(IEnumerable<TSource>, Func<TSource,Int32>) | 计算通过对输入序列的每个元素调用转换函数获得的 Int32 值的序列的平均值。 |
Average<TSource>(IEnumerable<TSource>, Func<TSource,Int64>) | 计算通过对输入序列的每个元素调用转换函数获得的 Int64 值的序列的平均值。 |
Average<TSource>(IEnumerable<TSource>, Func<TSource,Nullable<Decimal>>) | 计算一系列可为 null 的 Decimal 值的平均值,这些值是通过对输入序列的每个元素调用转换函数获得的。 |
Average<TSource>(IEnumerable<TSource>, Func<TSource,Nullable<Double>>) | 计算一系列可为 null 的 Double 值的平均值,这些值是通过对输入序列的每个元素调用转换函数获得的。 |
Average<TSource>(IEnumerable<TSource>, Func<TSource,Nullable<Int32>>) | 计算一系列可为 null 的 Int32 值的平均值,这些值是通过对输入序列的每个元素调用转换函数获得的。 |
Average<TSource>(IEnumerable<TSource>, Func<TSource,Nullable<Int64>>) | 计算一系列可为 null 的 Int64 值的平均值,这些值是通过对输入序列的每个元素调用转换函数获得的。 |
Average<TSource>(IEnumerable<TSource>, Func<TSource,Nullable<Single>>) | 计算一系列可为 null 的 Single 值的平均值,这些值是通过对输入序列的每个元素调用转换函数获得的。 |
Average<TSource>(IEnumerable<TSource>, Func<TSource,Single>) | 计算通过对输入序列的每个元素调用转换函数获得的 Single 值的序列的平均值。 |
Cast<TResult>(IEnumerable) | 将 IEnumerable 的元素强制转换为指定类型。 |
Chunk<TSource>(IEnumerable<TSource>, Int32) | 将序列的元素拆分为大小块,最多 |
Concat<TSource>(IEnumerable<TSource>, IEnumerable<TSource>) | 连接两个序列。 |
Contains<TSource>(IEnumerable<TSource>, TSource) | 使用默认相等比较器确定序列是否包含指定的元素。 |
Contains<TSource>(IEnumerable<TSource>, TSource, IEqualityComparer<TSource>) | 确定序列是否使用指定的 IEqualityComparer<T>包含指定的元素。 |
Count<TSource>(IEnumerable<TSource>) | 返回序列中的元素数。 |
Count<TSource>(IEnumerable<TSource>, Func<TSource,Boolean>) | 返回一个数字,该值代表指定序列中满足条件的元素数。 |
CountBy<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>, IEqualityComparer<TKey>) | 表示可由索引访问的强类型对象列表。 提供用于搜索、排序和操作列表的方法。 |
DefaultIfEmpty<TSource>(IEnumerable<TSource>) | 如果序列为空,则返回指定序列的元素或类型参数在单一实例集合中的默认值。 |
DefaultIfEmpty<TSource>(IEnumerable<TSource>, TSource) | 如果序列为空,则返回指定序列的元素或单个实例集合中的指定值。 |
Distinct<TSource>(IEnumerable<TSource>) | 通过使用默认相等比较器比较值,从序列中返回不同的元素。 |
Distinct<TSource>(IEnumerable<TSource>, IEqualityComparer<TSource>) | 通过使用指定的 IEqualityComparer<T> 来比较值,从序列中返回不同的元素。 |
DistinctBy<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>) | 根据指定的键选择器函数返回序列中的不同元素。 |
DistinctBy<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>, IEqualityComparer<TKey>) | 根据指定的键选择器函数并使用指定的比较器比较键,从序列中返回不同的元素。 |
ElementAt<TSource>(IEnumerable<TSource>, Index) | 返回序列中指定索引处的元素。 |
ElementAt<TSource>(IEnumerable<TSource>, Int32) | 返回序列中指定索引处的元素。 |
ElementAtOrDefault<TSource>(IEnumerable<TSource>, Index) | 返回序列中指定索引处的元素;如果索引范围不足,则返回默认值。 |
ElementAtOrDefault<TSource>(IEnumerable<TSource>, Int32) | 返回序列中指定索引处的元素;如果索引范围不足,则返回默认值。 |
Except<TSource>(IEnumerable<TSource>, IEnumerable<TSource>) | 使用默认相等比较器来比较值,生成两个序列的集差。 |
Except<TSource>(IEnumerable<TSource>, IEnumerable<TSource>, IEqualityComparer<TSource>) | 通过使用指定的 IEqualityComparer<T> 来比较值,生成两个序列的集差异。 |
ExceptBy<TSource,TKey>(IEnumerable<TSource>, IEnumerable<TKey>, Func<TSource,TKey>) | 根据指定的键选择器函数生成两个序列的集差异。 |
ExceptBy<TSource,TKey>(IEnumerable<TSource>, IEnumerable<TKey>, Func<TSource,TKey>, IEqualityComparer<TKey>) | 根据指定的键选择器函数生成两个序列的集差异。 |
First<TSource>(IEnumerable<TSource>) | 返回序列的第一个元素。 |
First<TSource>(IEnumerable<TSource>, Func<TSource,Boolean>) | 返回满足指定条件的序列中的第一个元素。 |
FirstOrDefault<TSource>(IEnumerable<TSource>) | 返回序列的第一个元素;如果序列不包含任何元素,则返回默认值。 |
FirstOrDefault<TSource>(IEnumerable<TSource>, TSource) | 返回序列的第一个元素;如果序列不包含任何元素,则返回指定的默认值。 |
FirstOrDefault<TSource>(IEnumerable<TSource>, Func<TSource,Boolean>) | 返回满足条件的序列的第一个元素;如果未找到此类元素,则返回默认值。 |
FirstOrDefault<TSource>(IEnumerable<TSource>, Func<TSource,Boolean>, TSource) | 返回满足条件的序列的第一个元素;如果未找到此类元素,则返回指定的默认值。 |
GroupBy<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>) | 根据指定的键选择器函数对序列的元素进行分组。 |
GroupBy<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>, IEqualityComparer<TKey>) | 根据指定的键选择器函数对序列的元素进行分组,并使用指定的比较器比较键。 |
GroupBy<TSource,TKey,TElement>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TElement>) | 根据指定的键选择器函数对序列的元素进行分组,并使用指定的函数投影每个组的元素。 |
GroupBy<TSource,TKey,TElement>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TElement>, IEqualityComparer<TKey>) | 根据键选择器函数对序列的元素进行分组。 通过使用比较器比较键,并且每个组的元素都通过使用指定的函数进行投影。 |
GroupBy<TSource,TKey,TResult>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TKey,IEnumerable<TSource>,TResult>) | 根据指定的键选择器函数对序列的元素进行分组,并从每个组及其键创建结果值。 |
GroupBy<TSource,TKey,TResult>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TKey,IEnumerable<TSource>,TResult>, IEqualityComparer<TKey>) | 根据指定的键选择器函数对序列的元素进行分组,并从每个组及其键创建结果值。 使用指定的比较器比较键。 |
GroupBy<TSource,TKey,TElement,TResult>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TElement>, Func<TKey,IEnumerable<TElement>,TResult>) | 根据指定的键选择器函数对序列的元素进行分组,并从每个组及其键创建结果值。 每个组的元素是使用指定的函数投影的。 |
GroupBy<TSource,TKey,TElement,TResult>(IEnumerable<TSource>, Func<TSource, TKey>, Func<TSource,TElement>, Func<TKey,IEnumerable<TElement>, TResult>, IEqualityComparer<TKey>) | 根据指定的键选择器函数对序列的元素进行分组,并从每个组及其键创建结果值。 使用指定的比较器比较键值,并且每个组的元素都通过使用指定的函数进行投影。 |
GroupJoin<TOuter,TInner,TKey,TResult>(IEnumerable<TOuter>, IEnumerable<TInner>, Func<TOuter,TKey>, Func<TInner,TKey>, Func<TOuter,IEnumerable<TInner>, TResult>) | 根据键的相等性关联两个序列的元素,并对结果进行分组。 默认相等比较器用于比较键。 |
GroupJoin<TOuter,TInner,TKey,TResult>(IEnumerable<TOuter>, IEnumerable<TInner>, Func<TOuter,TKey>, Func<TInner,TKey>, Func<TOuter,IEnumerable<TInner>, TResult>, IEqualityComparer<TKey>) | 根据键相等性关联两个序列的元素,并对结果进行分组。 指定的 IEqualityComparer<T> 用于比较键。 |
Index<TSource>(IEnumerable<TSource>) | 返回一个可枚举值,该枚举将元素的索引合并到元组中。 |
Intersect<TSource>(IEnumerable<TSource>, IEnumerable<TSource>) | 通过使用默认相等比较器来比较值,生成两个序列的集交集。 |
Intersect<TSource>(IEnumerable<TSource>, IEnumerable<TSource>, IEqualityComparer<TSource>) | 通过使用指定的 IEqualityComparer<T> 来比较值,生成两个序列的集交集。 |
IntersectBy<TSource,TKey>(IEnumerable<TSource>, IEnumerable<TKey>, Func<TSource,TKey>) | 根据指定的键选择器函数生成两个序列的集交集。 |
IntersectBy<TSource,TKey>(IEnumerable<TSource>, IEnumerable<TKey>, Func<TSource,TKey>, IEqualityComparer<TKey>) | 根据指定的键选择器函数生成两个序列的集交集。 |
Join<TOuter,TInner,TKey,TResult>(IEnumerable<TOuter>, IEnumerable<TInner>, Func<TOuter,TKey>, Func<TInner,TKey>, Func<TOuter,TInner,TResult>) | 根据匹配键关联两个序列的元素。 默认相等比较器用于比较键。 |
Join<TOuter,TInner,TKey,TResult>(IEnumerable<TOuter>, IEnumerable<TInner>, Func<TOuter,TKey>, Func<TInner,TKey>, Func<TOuter,TInner,TResult>, IEqualityComparer<TKey>) | 根据匹配键关联两个序列的元素。 指定的 IEqualityComparer<T> 用于比较键。 |
Last<TSource>(IEnumerable<TSource>) | 返回序列的最后一个元素。 |
Last<TSource>(IEnumerable<TSource>, Func<TSource,Boolean>) | 返回满足指定条件的序列的最后一个元素。 |
LastOrDefault<TSource>(IEnumerable<TSource>) | 返回序列的最后一个元素;如果序列不包含任何元素,则返回默认值。 |
LastOrDefault<TSource>(IEnumerable<TSource>, TSource) | 返回序列的最后一个元素;如果序列不包含任何元素,则返回指定的默认值。 |
LastOrDefault<TSource>(IEnumerable<TSource>, Func<TSource,Boolean>) | 返回满足条件的序列的最后一个元素;如果未找到此类元素,则返回默认值。 |
LastOrDefault<TSource>(IEnumerable<TSource>, Func<TSource,Boolean>, TSource) | 返回满足条件的序列的最后一个元素;如果未找到此类元素,则返回指定的默认值。 |
LongCount<TSource>(IEnumerable<TSource>) | 返回一个表示序列中元素总数的 Int64。 |
LongCount<TSource>(IEnumerable<TSource>, Func<TSource,Boolean>) | 返回表示序列中满足条件的元素数的 Int64。 |
Max<TSource>(IEnumerable<TSource>) | 返回泛型序列中的最大值。 |
Max<TSource>(IEnumerable<TSource>, IComparer<TSource>) | 返回泛型序列中的最大值。 |
Max<TSource>(IEnumerable<TSource>, Func<TSource,Decimal>) | 对序列的每个元素调用转换函数,并返回最大 Decimal 值。 |
Max<TSource>(IEnumerable<TSource>, Func<TSource,Double>) | 对序列的每个元素调用转换函数,并返回最大 Double 值。 |
Max<TSource>(IEnumerable<TSource>, Func<TSource,Int32>) | 对序列的每个元素调用转换函数,并返回最大 Int32 值。 |
Max<TSource>(IEnumerable<TSource>, Func<TSource,Int64>) | 对序列的每个元素调用转换函数,并返回最大 Int64 值。 |
Max<TSource>(IEnumerable<TSource>, Func<TSource,Nullable<Decimal>>) | 对序列的每个元素调用转换函数,并返回最大可为 null Decimal 值。 |
Max<TSource>(IEnumerable<TSource>, Func<TSource,Nullable<Double>>) | 对序列的每个元素调用转换函数,并返回最大可为 null Double 值。 |
Max<TSource>(IEnumerable<TSource>, Func<TSource,Nullable<Int32>>) | 对序列的每个元素调用转换函数,并返回最大可为 null Int32 值。 |
Max<TSource>(IEnumerable<TSource>, Func<TSource,Nullable<Int64>>) | 对序列的每个元素调用转换函数,并返回最大可为 null Int64 值。 |
Max<TSource>(IEnumerable<TSource>, Func<TSource,Nullable<Single>>) | 对序列的每个元素调用转换函数,并返回最大可为 null Single 值。 |
Max<TSource>(IEnumerable<TSource>, Func<TSource,Single>) | 对序列的每个元素调用转换函数,并返回最大 Single 值。 |
Max<TSource,TResult>(IEnumerable<TSource>, Func<TSource,TResult>) | 对泛型序列的每个元素调用转换函数,并返回得到的最大值。 |
MaxBy<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>) | 根据指定的键选择器函数返回泛型序列中的最大值。 |
MaxBy<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>, IComparer<TKey>) | 根据指定的键选择器函数和键比较器返回泛型序列中的最大值。 |
Min<TSource>(IEnumerable<TSource>) | 返回泛型序列中的最小值。 |
Min<TSource>(IEnumerable<TSource>, IComparer<TSource>) | 返回泛型序列中的最小值。 |
Min<TSource>(IEnumerable<TSource>, Func<TSource,Decimal>) | 对序列的每个元素调用转换函数,并返回最小 Decimal 值。 |
Min<TSource>(IEnumerable<TSource>, Func<TSource,Double>) | 对序列的每个元素调用转换函数,并返回最小 Double 值。 |
Min<TSource>(IEnumerable<TSource>, Func<TSource,Int32>) | 对序列的每个元素调用转换函数,并返回最小 Int32 值。 |
Min<TSource>(IEnumerable<TSource>, Func<TSource,Int64>) | 对序列的每个元素调用转换函数,并返回最小 Int64 值。 |
Min<TSource>(IEnumerable<TSource>, Func<TSource,Nullable<Decimal>>) | 对序列的每个元素调用转换函数,并返回可为 null 的最小 Decimal 值。 |
Min<TSource>(IEnumerable<TSource>, Func<TSource,Nullable<Double>>) | 对序列的每个元素调用转换函数,并返回可为 null 的最小 Double 值。 |
Min<TSource>(IEnumerable<TSource>, Func<TSource,Nullable<Int32>>) | 对序列的每个元素调用转换函数,并返回可为 null 的最小 Int32 值。 |
Min<TSource>(IEnumerable<TSource>, Func<TSource,Nullable<Int64>>) | 对序列的每个元素调用转换函数,并返回可为 null 的最小 Int64 值。 |
Min<TSource>(IEnumerable<TSource>, Func<TSource,Nullable<Single>>) | 对序列的每个元素调用转换函数,并返回可为 null 的最小 Single 值。 |
Min<TSource>(IEnumerable<TSource>, Func<TSource,Single>) | 对序列的每个元素调用转换函数,并返回最小 Single 值。 |
Min<TSource,TResult>(IEnumerable<TSource>, Func<TSource,TResult>) | 对泛型序列的每个元素调用转换函数,并返回生成的最小值。 |
MinBy<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>) | 根据指定的键选择器函数返回泛型序列中的最小值。 |
MinBy<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>, IComparer<TKey>) | 根据指定的键选择器函数和键比较器返回泛型序列中的最小值。 |
OfType<TResult>(IEnumerable) | 根据指定类型筛选 IEnumerable 的元素。 |
Order<T>(IEnumerable<T>) | 按升序对序列的元素进行排序。 |
Order<T>(IEnumerable<T>, IComparer<T>) | 按升序对序列的元素进行排序。 |
OrderBy<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>) | 根据键按升序对序列的元素进行排序。 |
OrderBy<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>, IComparer<TKey>) | 使用指定的比较器按升序对序列的元素进行排序。 |
OrderByDescending<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>) | 根据键按降序对序列的元素进行排序。 |
OrderByDescending<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>, IComparer<TKey>) | 使用指定的比较器按降序对序列的元素进行排序。 |
OrderDescending<T>(IEnumerable<T>) | 按降序对序列的元素进行排序。 |
OrderDescending<T>(IEnumerable<T>, IComparer<T>) | 按降序对序列的元素进行排序。 |
Prepend<TSource>(IEnumerable<TSource>, TSource) | 将值添加到序列的开头。 |
Reverse<TSource>(IEnumerable<TSource>) | 反转序列中元素的顺序。 |
Select<TSource,TResult>(IEnumerable<TSource>, Func<TSource,TResult>) | 将序列的每个元素投影到一个新窗体中。 |
Select<TSource,TResult>(IEnumerable<TSource>, Func<TSource,Int32,TResult>) | 通过合并元素的索引,将序列的每个元素投影到一个新窗体中。 |
SelectMany<TSource,TResult>(IEnumerable<TSource>, Func<TSource,IEnumerable<TResult>>) | 将序列的每个元素投影到 IEnumerable<T>,并将生成的序列平展为一个序列。 |
SelectMany<TSource,TResult>(IEnumerable<TSource>, Func<TSource,Int32,IEnumerable<TResult>>) | 将序列的每个元素投影到 IEnumerable<T>,并将生成的序列平展为一个序列。 每个源元素的索引用于该元素的投影形式。 |
SelectMany<TSource,TCollection,TResult>(IEnumerable<TSource>, Func<TSource,IEnumerable<TCollection>>, Func<TSource,TCollection,TResult>) | 将序列的每个元素投影到 IEnumerable<T>,将生成的序列平展为一个序列,并在其中的每个元素上调用结果选择器函数。 |
SelectMany<TSource,TCollection,TResult>(IEnumerable<TSource>, Func<TSource,Int32,IEnumerable<TCollection>>, Func<TSource,TCollection,TResult>) | 将序列的每个元素投影到 IEnumerable<T>,将生成的序列平展为一个序列,并在其中的每个元素上调用结果选择器函数。 每个源元素的索引用于该元素的中间投影形式。 |
SequenceEqual<TSource>(IEnumerable<TSource>, IEnumerable<TSource>) | 通过使用其类型的默认相等比较器,确定两个序列是否相等。 |
SequenceEqual<TSource>(IEnumerable<TSource>, IEnumerable<TSource>, IEqualityComparer<TSource>) | 通过使用指定的 IEqualityComparer<T>,确定两个序列是否相等。 |
Single<TSource>(IEnumerable<TSource>) | 返回序列的唯一元素,如果序列中没有完全有一个元素,则会引发异常。 |
Single<TSource>(IEnumerable<TSource>, Func<TSource,Boolean>) | 返回满足指定条件的序列的唯一元素,如果存在多个此类元素,则会引发异常。 |
SingleOrDefault<TSource>(IEnumerable<TSource>) | 返回序列的唯一元素;如果序列为空,则返回默认值;如果序列中有多个元素,此方法将引发异常。 |
SingleOrDefault<TSource>(IEnumerable<TSource>, TSource) | 返回序列的唯一元素;如果序列为空,则返回指定的默认值;如果序列中有多个元素,此方法将引发异常。 |
SingleOrDefault<TSource>(IEnumerable<TSource>, Func<TSource,Boolean>) | 返回满足指定条件的序列的唯一元素;如果没有此类元素,则返回默认值;如果多个元素满足条件,此方法将引发异常。 |
SingleOrDefault<TSource>(IEnumerable<TSource>, Func<TSource,Boolean>, TSource) | 返回满足指定条件的序列的唯一元素;如果没有此类元素,则返回指定的默认值;如果多个元素满足条件,此方法将引发异常。 |
Skip<TSource>(IEnumerable<TSource>, Int32) | 绕过序列中的指定数量的元素,然后返回其余元素。 |
SkipLast<TSource>(IEnumerable<TSource>, Int32) | 返回一个新的可枚举集合,该集合包含 |
SkipWhile<TSource>(IEnumerable<TSource>, Func<TSource,Boolean>) | 只要指定条件为 true,即可绕过序列中的元素,然后返回其余元素。 |
SkipWhile<TSource>(IEnumerable<TSource>, Func<TSource,Int32,Boolean>) | 只要指定条件为 true,即可绕过序列中的元素,然后返回其余元素。 元素的索引用于谓词函数的逻辑。 |
Sum<TSource>(IEnumerable<TSource>, Func<TSource,Decimal>) | 计算通过对输入序列的每个元素调用转换函数获得的 Decimal 值序列的总和。 |
Sum<TSource>(IEnumerable<TSource>, Func<TSource,Double>) | 计算通过对输入序列的每个元素调用转换函数获得的 Double 值序列的总和。 |
Sum<TSource>(IEnumerable<TSource>, Func<TSource,Int32>) | 计算通过对输入序列的每个元素调用转换函数获得的 Int32 值序列的总和。 |
Sum<TSource>(IEnumerable<TSource>, Func<TSource,Int64>) | 计算通过对输入序列的每个元素调用转换函数获得的 Int64 值序列的总和。 |
Sum<TSource>(IEnumerable<TSource>, Func<TSource,Nullable<Decimal>>) | 计算通过对输入序列的每个元素调用转换函数获取的可为 null Decimal 值的序列的总和。 |
Sum<TSource>(IEnumerable<TSource>, Func<TSource,Nullable<Double>>) | 计算通过对输入序列的每个元素调用转换函数获取的可为 null Double 值的序列的总和。 |
Sum<TSource>(IEnumerable<TSource>, Func<TSource,Nullable<Int32>>) | 计算通过对输入序列的每个元素调用转换函数获取的可为 null Int32 值的序列的总和。 |
Sum<TSource>(IEnumerable<TSource>, Func<TSource,Nullable<Int64>>) | 计算通过对输入序列的每个元素调用转换函数获取的可为 null Int64 值的序列的总和。 |
Sum<TSource>(IEnumerable<TSource>, Func<TSource,Nullable<Single>>) | 计算通过对输入序列的每个元素调用转换函数获取的可为 null Single 值的序列的总和。 |
Sum<TSource>(IEnumerable<TSource>, Func<TSource,Single>) | 计算通过对输入序列的每个元素调用转换函数获得的 Single 值序列的总和。 |
Take<TSource>(IEnumerable<TSource>, Int32) | 从序列的开头返回指定的连续元素数。 |
Take<TSource>(IEnumerable<TSource>, Range) | 返回序列中连续元素的指定范围。 |
TakeLast<TSource>(IEnumerable<TSource>, Int32) | 返回一个新的可枚举集合,该集合包含来自 |
TakeWhile<TSource>(IEnumerable<TSource>, Func<TSource,Boolean>) | 只要指定的条件为 true,就从序列中返回元素。 |
TakeWhile<TSource>(IEnumerable<TSource>, Func<TSource,Int32,Boolean>) | 只要指定的条件为 true,就从序列中返回元素。 元素的索引用于谓词函数的逻辑。 |
ToArray<TSource>(IEnumerable<TSource>) | 从 IEnumerable<T>创建数组。 |
ToDictionary<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>) | 根据指定的键选择器函数从 IEnumerable<T> 创建 Dictionary<TKey,TValue>。 |
ToDictionary<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>, IEqualityComparer<TKey>) | 根据指定的键选择器函数和键比较器从 IEnumerable<T> 创建 Dictionary<TKey,TValue>。 |
ToDictionary<TSource,TKey,TElement>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TElement>) | 根据指定的键选择器和元素选择器函数从 IEnumerable<T> 创建 Dictionary<TKey,TValue>。 |
ToDictionary<TSource,TKey,TElement>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TElement>, IEqualityComparer<TKey>) | 根据指定的键选择器函数、比较器和元素选择器函数从 IEnumerable<T> 创建 Dictionary<TKey,TValue>。 |
ToHashSet<TSource>(IEnumerable<TSource>) | 从 IEnumerable<T>创建 HashSet<T>。 |
ToHashSet<TSource>(IEnumerable<TSource>, IEqualityComparer<TSource>) | 使用 |
ToList<TSource>(IEnumerable<TSource>) | 从 IEnumerable<T>创建 List<T>。 |
ToLookup<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>) | 根据指定的键选择器函数从 IEnumerable<T> 创建 Lookup<TKey,TElement>。 |
ToLookup<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>, IEqualityComparer<TKey>) | 根据指定的键选择器函数和键比较器从 IEnumerable<T> 创建 Lookup<TKey,TElement>。 |
ToLookup<TSource,TKey,TElement>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TElement>) | 根据指定的键选择器和元素选择器函数从 IEnumerable<T> 创建 Lookup<TKey,TElement>。 |
ToLookup<TSource,TKey,TElement>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TElement>, IEqualityComparer<TKey>) | 根据指定的键选择器函数、比较器和元素选择器函数从 IEnumerable<T> 创建 Lookup<TKey,TElement>。 |
TryGetNonEnumeratedCount<TSource>(IEnumerable<TSource>, Int32) | 尝试在不强制枚举的情况下确定序列中的元素数。 |
Union<TSource>(IEnumerable<TSource>, IEnumerable<TSource>) | 使用默认相等比较器生成两个序列的集并集。 |
Union<TSource>(IEnumerable<TSource>, IEnumerable<TSource>, IEqualityComparer<TSource>) | 使用指定的 IEqualityComparer<T>生成两个序列的集并集。 |
UnionBy<TSource,TKey>(IEnumerable<TSource>, IEnumerable<TSource>, Func<TSource,TKey>) | 根据指定的键选择器函数生成两个序列的集并集。 |
UnionBy<TSource,TKey>(IEnumerable<TSource>, IEnumerable<TSource>, Func<TSource,TKey>, IEqualityComparer<TKey>) | 根据指定的键选择器函数生成两个序列的集并集。 |
Where<TSource>(IEnumerable<TSource>, Func<TSource,Boolean>) | 根据谓词筛选值序列。 |
Where<TSource>(IEnumerable<TSource>, Func<TSource,Int32,Boolean>) | 根据谓词筛选值序列。 每个元素的索引都在谓词函数的逻辑中使用。 |
Zip<TFirst,TSecond>(IEnumerable<TFirst>, IEnumerable<TSecond>) | 生成包含两个指定序列中的元素的元组序列。 |
Zip<TFirst,TSecond,TThird>(IEnumerable<TFirst>, IEnumerable<TSecond>, IEnumerable<TThird>) | 生成包含三个指定序列中的元素的元组序列。 |
Zip<TFirst,TSecond,TResult>(IEnumerable<TFirst>, IEnumerable<TSecond>, Func<TFirst,TSecond,TResult>) | 将指定的函数应用于两个序列的相应元素,从而生成结果序列。 |
AsParallel(IEnumerable) | 启用查询的并行化。 |
AsParallel<TSource>(IEnumerable<TSource>) | 启用查询的并行化。 |
AsQueryable(IEnumerable) | 将 IEnumerable 转换为 IQueryable。 |
AsQueryable<TElement>(IEnumerable<TElement>) | 将泛型 IEnumerable<T> 转换为泛型 IQueryable<T>。 |
Ancestors<T>(IEnumerable<T>) | 返回一个元素集合,其中包含源集合中每个节点的上级。 |
Ancestors<T>(IEnumerable<T>, XName) | 返回一个筛选的元素集合,其中包含源集合中每个节点的上级。 集合中仅包含具有匹配 XName 的元素。 |
DescendantNodes<T>(IEnumerable<T>) | 返回源集合中每个文档和元素的子代节点的集合。 |
Descendants<T>(IEnumerable<T>) | 返回一个元素集合,其中包含源集合中每个元素和文档的子代元素。 |
Descendants<T>(IEnumerable<T>, XName) | 返回一个筛选的元素集合,其中包含源集合中每个元素和文档的子代元素。 集合中仅包含具有匹配 XName 的元素。 |
Elements<T>(IEnumerable<T>) | 返回源集合中每个元素和文档的子元素的集合。 |
Elements<T>(IEnumerable<T>, XName) | 返回源集合中每个元素和文档的子元素的筛选集合。 集合中仅包含具有匹配 XName 的元素。 |
InDocumentOrder<T>(IEnumerable<T>) | 返回一个节点集合,其中包含源集合中的所有节点,按文档顺序排序。 |
Nodes<T>(IEnumerable<T>) | 返回源集合中每个文档和元素的子节点的集合。 |
Remove<T>(IEnumerable<T>) | 从源集合的父节点中删除每个节点。 |
在 C# 中,Vector<T> 是 System.Numerics 命名空间下的 SIMD (单指令多数据) 向量类型。
Abs<T>(Vector<T>) | 返回一个新向量,其元素是给定向量元素的绝对值。 |
Add<T>(Vector<T>, Vector<T>) | 返回一个新向量,其值是两个给定向量中每对元素的总和。 |
AndNot<T>(Vector<T>, Vector<T>) | 通过对两个向量中的每个对应元素对执行按位且不运算来返回一个新向量。 |
As<TFrom,TTo>(Vector<TFrom>) | 将 Vector<T> 重新解释为新的 Vector<T>。 |
AsPlane(Vector4) | 将 Vector4 重新解释为新的 Plane。 |
AsQuaternion(Vector4) | 将 Vector4 重新解释为新的 Quaternion。 |
AsVector2(Vector4) | 将 Vector4 重新解释为新的 Vector2。 |
AsVector3(Vector4) | 将 Vector4 重新解释为新的 Vector3。 |
AsVector4(Plane) | 将 Plane 重新解释为新的 Vector4。 |
AsVector4(Quaternion) | 将 Quaternion 重新解释为新的 Vector4。 |
AsVector4(Vector2) | 使用零零的新元素重新解释对新 Vector4 的 Vector2。 |
AsVector4(Vector3) | 将 Vector3 转换为具有零新元素的新 Vector4。 |
AsVector4Unsafe(Vector2) | 使用未定义的新元素重新解释对新 Vector4 的 Vector2。 |
AsVector4Unsafe(Vector3) | 使用未定义的新元素将 Vector3 转换为新的 Vector4。 |
AsVectorByte<T>(Vector<T>) | 将指定向量的位重新解释为无符号字节矢量的位。 |
AsVectorDouble<T>(Vector<T>) | 将指定向量的位重新解释为双精度浮点向量。 |
AsVectorInt16<T>(Vector<T>) | 将指定向量的位重新解释为 16 位整数的向量。 |
AsVectorInt32<T>(Vector<T>) | 将指定向量的位重新解释为整数向量。 |
AsVectorInt64<T>(Vector<T>) | 将指定向量的位重新解释为长整数向量中的位。 |
AsVectorNInt<T>(Vector<T>) | 将指定向量的位重新解释为本机大小的整数矢量的位。 |
AsVectorNUInt<T>(Vector<T>) | 将指定向量的位重新解释为本机大小的无符号整数矢量的位。 |
AsVectorSByte<T>(Vector<T>) | 将指定向量的位重新解释为带符号字节矢量的位。 |
AsVectorSingle<T>(Vector<T>) | 将指定向量的位重新解释为单精度浮点向量。 |
AsVectorUInt16<T>(Vector<T>) | 将指定向量的位重新解释为无符号 16 位整数的向量。 |
AsVectorUInt32<T>(Vector<T>) | 将指定向量的位重新解释为无符号整数矢量的位。 |
AsVectorUInt64<T>(Vector<T>) | 将指定向量的位重新解释为无符号长整数矢量的位。 |
BitwiseAnd<T>(Vector<T>, Vector<T>) | 通过对两个向量中的每个元素对执行按位 |
BitwiseOr<T>(Vector<T>, Vector<T>) | 通过对两个向量中的每个元素对执行按位 |
Ceiling(Vector<Double>) | 返回一个新向量,其元素是大于或等于给定向量元素的最小整型值。 |
Ceiling(Vector<Single>) | 返回一个新向量,其元素是大于或等于给定向量元素的最小整型值。 |
Clamp<T>(Vector<T>, Vector<T>, Vector<T>) | 限制最小值和最大值之间的向量。 |
ClampNative<T>(Vector<T>, Vector<T>, Vector<T>) | 使用 |
ConditionalSelect(Vector<Int32>, Vector<Single>, Vector<Single>) | 创建一个新的单精度向量,其中包含基于整型掩码向量在两个指定单精度源向量之间进行选择的元素。 |
ConditionalSelect(Vector<Int64>, Vector<Double>, Vector<Double>) | 创建一个新的双精度向量,其中包含基于整型掩码向量在两个指定的双精度源向量之间选择的元素。 |
ConditionalSelect<T>(Vector<T>, Vector<T>, Vector<T>) | 创建指定类型的新向量,其中基于整型掩码向量在相同类型的两个指定源向量之间选择的元素。 |
ConvertToDouble(Vector<Int64>) | 将 |
ConvertToDouble(Vector<UInt64>) | 将 |
ConvertToInt32(Vector<Single>) | 将 |
ConvertToInt32Native(Vector<Single>) | 使用特定于平台的行为在溢出时将 Vector<T> 转换为 Vector<T>。 |
ConvertToInt64(Vector<Double>) | 将 |
ConvertToInt64Native(Vector<Double>) | 使用特定于平台的行为在溢出时将 |
ConvertToSingle(Vector<Int32>) | 将 |
ConvertToSingle(Vector<UInt32>) | 将 |
ConvertToUInt32(Vector<Single>) | 将 |
ConvertToUInt32Native(Vector<Single>) | 使用特定于平台的行为在溢出时将 |
ConvertToUInt64(Vector<Double>) | 将 |
ConvertToUInt64Native(Vector<Double>) | 使用特定于平台的行为在溢出时将 |
CopySign<T>(Vector<T>, Vector<T>) | 将向量的 per-element 符号复制到另一个向量的 per-element 符号。 |
Cos(Vector<Double>) | 提供用于创建、操作和其他在泛型向量上运行的静态方法的集合。 |
Cos(Vector<Single>) | 提供用于创建、操作和其他在泛型向量上运行的静态方法的集合。 |
Create<T>(ReadOnlySpan<T>) | 从给定的只读范围创建新的 Vector<T>。 |
Create<T>(T) | 创建一个新的 Vector<T> 实例,其中包含初始化为指定值的所有元素。 |
CreateSequence<T>(T, T) | 创建一个新的 Vector<T> 实例,其中元素从指定值开始,并按另一个指定值分隔。 |
DegreesToRadians(Vector<Double>) | 提供用于创建、操作和其他在泛型向量上运行的静态方法的集合。 |
DegreesToRadians(Vector<Single>) | 提供用于创建、操作和其他在泛型向量上运行的静态方法的集合。 |
Divide<T>(Vector<T>, T) | 将矢量除以标量以计算每个元素商。 |
Divide<T>(Vector<T>, Vector<T>) | 返回一个新向量,其值是将第一个向量元素除以第二个向量中的相应元素的结果。 |
Dot<T>(Vector<T>, Vector<T>) | 返回两个向量的点积。 |
Equals(Vector<Double>, Vector<Double>) | 返回一个新的整型向量,其元素指示两个指定双精度向量中的元素是否相等。 |
Equals(Vector<Int32>, Vector<Int32>) | 返回一个新的整型向量,其元素指示两个指定整型向量中的元素是否相等。 |
Equals(Vector<Int64>, Vector<Int64>) | 返回一个新向量,其元素指示两个指定长整数向量中的元素是否相等。 |
Equals(Vector<Single>, Vector<Single>) | 返回一个新的整型向量,其元素指示两个指定单精度向量中的元素是否相等。 |
Equals<T>(Vector<T>, Vector<T>) | 返回指定类型的新向量,其元素指示同一类型的两个指定向量中的元素是否相等。 |
EqualsAll<T>(Vector<T>, Vector<T>) | 返回一个值,该值指示给定向量中的每个元素对是否相等。 |
EqualsAny<T>(Vector<T>, Vector<T>) | 返回一个值,该值指示给定向量中的任何一对元素是否相等。 |
Exp(Vector<Double>) | 提供用于创建、操作和其他在泛型向量上运行的静态方法的集合。 |
Exp(Vector<Single>) | 提供用于创建、操作和其他在泛型向量上运行的静态方法的集合。 |
Floor(Vector<Double>) | 返回一个新向量,其元素是小于或等于给定向量元素的最大整型值。 |
Floor(Vector<Single>) | 返回一个新向量,其元素是小于或等于给定向量元素的最大整型值。 |
FusedMultiplyAdd(Vector<Double>, Vector<Double>, Vector<Double>) | 计算 ( |
FusedMultiplyAdd(Vector<Single>, Vector<Single>, Vector<Single>) | 计算 ( |
GetElement<T>(Vector<T>, Int32) | 获取指定索引处的元素。 |
GreaterThan(Vector<Double>, Vector<Double>) | 返回一个新的整型向量,其元素指示一个双精度浮点向量中的元素是否大于第二个双精度浮点向量中的相应元素。 |
GreaterThan(Vector<Int32>, Vector<Int32>) | 返回一个新的整型向量,其元素指示一个整型向量中的元素是否大于第二个整型向量中的相应元素。 |
GreaterThan(Vector<Int64>, Vector<Int64>) | 返回一个新的长整数向量,其元素指示一个长整数向量中的元素是否大于第二个长整数向量中的相应元素。 |
GreaterThan(Vector<Single>, Vector<Single>) | 返回一个新的整型向量,其元素指示一个单精度浮点向量中的元素是否大于第二个单精度浮点向量中的相应元素。 |
GreaterThan<T>(Vector<T>, Vector<T>) | 返回一个新向量,其元素指示指定类型的一个向量中的元素是否大于同一时间第二个向量中的相应元素。 |
GreaterThanAll<T>(Vector<T>, Vector<T>) | 返回一个值,该值指示第一个向量中的所有元素是否大于第二个向量中的相应元素。 |
GreaterThanAny<T>(Vector<T>, Vector<T>) | 返回一个值,该值指示第一个向量中的任何元素是否大于第二个向量中的相应元素。 |
GreaterThanOrEqual(Vector<Double>, Vector<Double>) | 返回一个新的整型向量,其元素指示一个向量中的元素是否大于或等于第二个双精度浮点向量中的相应元素。 |
GreaterThanOrEqual(Vector<Int32>, Vector<Int32>) | 返回一个新的整型向量,其元素指示一个整型向量的元素是否大于或等于第二个整型向量中的相应元素。 |
GreaterThanOrEqual(Vector<Int64>, Vector<Int64>) | 返回一个新的长整数向量,其元素指示一个长整数向量中的元素是否大于或等于其第二个长整数向量中的相应元素。 |
GreaterThanOrEqual(Vector<Single>, Vector<Single>) | 返回一个新的整型向量,其元素指示一个向量中的元素是否大于或等于其单精度浮点第二向量中的相应元素。 |
GreaterThanOrEqual<T>(Vector<T>, Vector<T>) | 返回一个新向量,其元素指示指定类型的一个向量中的元素是否大于或等于同一类型的第二个向量中的相应元素。 |
GreaterThanOrEqualAll<T>(Vector<T>, Vector<T>) | 返回一个值,该值指示第一个向量中的所有元素是否大于或等于第二个向量中的所有相应元素。 |
GreaterThanOrEqualAny<T>(Vector<T>, Vector<T>) | 返回一个值,该值指示第一个向量中的任何元素是否大于或等于第二个向量中的相应元素。 |
Hypot(Vector<Double>, Vector<Double>) | 提供用于创建、操作和其他在泛型向量上运行的静态方法的集合。 |
Hypot(Vector<Single>, Vector<Single>) | 提供用于创建、操作和其他在泛型向量上运行的静态方法的集合。 |
IsNaN<T>(Vector<T>) | 确定向量中的哪些元素为 NaN。 |
IsNegative<T>(Vector<T>) | 确定向量中的哪些元素表示负实数。 |
IsPositive<T>(Vector<T>) | 确定向量中的哪些元素表示正实数。 |
IsPositiveInfinity<T>(Vector<T>) | 确定向量中的哪些元素是正无穷大。 |
IsZero<T>(Vector<T>) | 确定向量中的哪些元素为零。 |
Lerp(Vector<Double>, Vector<Double>, Vector<Double>) | 根据给定权重在两个向量之间执行线性内插。 |
Lerp(Vector<Single>, Vector<Single>, Vector<Single>) | 根据给定权重在两个向量之间执行线性内插。 |
LessThan(Vector<Double>, Vector<Double>) | 返回一个新的整型向量,其元素指示一个双精度浮点向量中的元素是否小于第二个双精度浮点向量中的相应元素。 |
LessThan(Vector<Int32>, Vector<Int32>) | 返回一个新的整型向量,其元素指示一个整型向量中的元素是否小于第二整型向量中的相应元素。 |
LessThan(Vector<Int64>, Vector<Int64>) | 返回一个新的长整数向量,其元素指示一个长整数向量中的元素是否小于第二个长整数向量中的相应元素。 |
LessThan(Vector<Single>, Vector<Single>) | 返回一个新的整型向量,其元素指示一个单精度向量中的元素是否小于第二个单精度向量中的相应元素。 |
LessThan<T>(Vector<T>, Vector<T>) | 返回指定类型的新向量向量,其元素指示一个向量中的元素是否小于第二个向量中的相应元素。 |
LessThanAll<T>(Vector<T>, Vector<T>) | 返回一个值,该值指示第一个向量中的所有元素是否小于第二个向量中的相应元素。 |
LessThanAny<T>(Vector<T>, Vector<T>) | 返回一个值,该值指示第一个向量中的任何元素是否小于第二个向量中的相应元素。 |
LessThanOrEqual(Vector<Double>, Vector<Double>) | 返回一个新的整型向量,其元素指示一个双精度浮点向量中的元素是否小于或等于第二个双精度浮点向量中的相应元素。 |
LessThanOrEqual(Vector<Int32>, Vector<Int32>) | 返回一个新的整型向量,其元素指示一个整型向量的元素是否小于或等于第二个整型向量中的相应元素。 |
LessThanOrEqual(Vector<Int64>, Vector<Int64>) | 返回一个新的长整数向量,其元素指示一个长整数向量中的元素是小于还是等于第二个长整数向量中的相应元素。 |
LessThanOrEqual(Vector<Single>, Vector<Single>) | 返回一个新的整型向量,其元素指示一个单精度浮点向量中的元素是否小于或等于第二个单精度浮点向量中的相应元素。 |
LessThanOrEqual<T>(Vector<T>, Vector<T>) | 返回一个新向量,其元素指示一个向量中的元素是否小于或等于第二个向量中的相应元素。 |
LessThanOrEqualAll<T>(Vector<T>, Vector<T>) | 返回一个值,该值指示第一个向量中的所有元素是否小于或等于第二个向量中的相应元素。 |
LessThanOrEqualAny<T>(Vector<T>, Vector<T>) | 返回一个值,该值指示第一个向量中的任何元素是否小于或等于第二个向量中的相应元素。 |
Load<T>(T*) | 从给定源加载向量。 |
LoadAligned<T>(T*) | 从给定的对齐源加载向量。 |
LoadAlignedNonTemporal<T>(T*) | 从给定的对齐源加载向量。 |
LoadUnsafe<T>(T) | 从给定源加载向量。 |
LoadUnsafe<T>(T, UIntPtr) | 从给定的源和元素偏移量加载向量。 |
Log(Vector<Double>) | 提供用于创建、操作和其他在泛型向量上运行的静态方法的集合。 |
Log(Vector<Single>) | 提供用于创建、操作和其他在泛型向量上运行的静态方法的集合。 |
Log2(Vector<Double>) | 提供用于创建、操作和其他在泛型向量上运行的静态方法的集合。 |
Log2(Vector<Single>) | 提供用于创建、操作和其他在泛型向量上运行的静态方法的集合。 |
Max<T>(Vector<T>, Vector<T>) | 返回一个新向量,其元素是两个给定向量中每个元素对的最大值。 |
MaxMagnitude<T>(Vector<T>, Vector<T>) | 将两个向量与计算进行比较,每个元素具有更大的数量级。 |
MaxMagnitudeNumber<T>(Vector<T>, Vector<T>) | 将两个向量(基于每个元素)与计算进行比较,如果输入 |
MaxNative<T>(Vector<T>, Vector<T>) | 比较两个向量,以确定每个元素使用特定于平台的行为 |
MaxNumber<T>(Vector<T>, Vector<T>) | 将两个向量(基于每个元素)与计算结果进行比较,如果元素 |
Min<T>(Vector<T>, Vector<T>) | 返回一个新向量,其元素是两个给定向量中每个元素对的最小值。 |
MinMagnitude<T>(Vector<T>, Vector<T>) | 将两个向量与计算进行比较,每个元素的量级较小。 |
MinMagnitudeNumber<T>(Vector<T>, Vector<T>) | 将两个向量(基于每个元素)与计算进行比较,如果输入 |
MinNative<T>(Vector<T>, Vector<T>) | 比较两个向量,以确定每个元素使用特定于平台的行为 |
MinNumber<T>(Vector<T>, Vector<T>) | 比较两个向量(基于每个元素)计算,如果元素 |
Multiply<T>(T, Vector<T>) | 返回一个新向量,其值是标量值乘以指定向量的每个值。 |
Multiply<T>(Vector<T>, T) | 返回一个新向量,其值是指定向量的值,每个向量乘以标量值。 |
Multiply<T>(Vector<T>, Vector<T>) | 返回一个新向量,其值是两个指定向量中每个元素对的乘积。 |
MultiplyAddEstimate(Vector<Double>, Vector<Double>, Vector<Double>) | 提供用于创建、操作和其他在泛型向量上运行的静态方法的集合。 |
MultiplyAddEstimate(Vector<Single>, Vector<Single>, Vector<Single>) | 提供用于创建、操作和其他在泛型向量上运行的静态方法的集合。 |
Narrow(Vector<Double>, Vector<Double>) | 将两个 |
Narrow(Vector<Int16>, Vector<Int16>) | 将两个 |
Narrow(Vector<Int32>, Vector<Int32>) | 将两个 |
Narrow(Vector<Int64>, Vector<Int64>) | 将两个 |
Narrow(Vector<UInt16>, Vector<UInt16>) | 将两个 |
Narrow(Vector<UInt32>, Vector<UInt32>) | 将两个 |
Narrow(Vector<UInt64>, Vector<UInt64>) | 将两个 |
Negate<T>(Vector<T>) | 返回一个新向量,其元素是指定向量中相应元素的求反。 |
OnesComplement<T>(Vector<T>) | 返回一个新向量,其元素是通过获取指定向量元素的补数获得的。 |
RadiansToDegrees(Vector<Double>) | 提供用于创建、操作和其他在泛型向量上运行的静态方法的集合。 |
RadiansToDegrees(Vector<Single>) | 提供用于创建、操作和其他在泛型向量上运行的静态方法的集合。 |
Round(Vector<Double>) | 提供用于创建、操作和其他在泛型向量上运行的静态方法的集合。 |
Round(Vector<Double>, MidpointRounding) | 提供用于创建、操作和其他在泛型向量上运行的静态方法的集合。 |
Round(Vector<Single>) | 提供用于创建、操作和其他在泛型向量上运行的静态方法的集合。 |
Round(Vector<Single>, MidpointRounding) | 提供用于创建、操作和其他在泛型向量上运行的静态方法的集合。 |
ShiftLeft(Vector<Byte>, Int32) | 将向量的每个元素左移指定量。 |
ShiftLeft(Vector<Int16>, Int32) | 将向量的每个元素左移指定量。 |
ShiftLeft(Vector<Int32>, Int32) | 将向量的每个元素左移指定量。 |
ShiftLeft(Vector<Int64>, Int32) | 将向量的每个元素左移指定量。 |
ShiftLeft(Vector<IntPtr>, Int32) | 将向量的每个元素左移指定量。 |
ShiftLeft(Vector<SByte>, Int32) | 将向量的每个元素左移指定量。 |
ShiftLeft(Vector<UInt16>, Int32) | 将向量的每个元素左移指定量。 |
ShiftLeft(Vector<UInt32>, Int32) | 将向量的每个元素左移指定量。 |
ShiftLeft(Vector<UInt64>, Int32) | 将向量的每个元素左移指定量。 |
ShiftLeft(Vector<UIntPtr>, Int32) | 将向量的每个元素左移指定量。 |
ShiftRightArithmetic(Vector<Int16>, Int32) | 按指定量向量向右移动 (signed) 的每个元素。 |
ShiftRightArithmetic(Vector<Int32>, Int32) | 按指定量向量向右移动 (signed) 的每个元素。 |
ShiftRightArithmetic(Vector<Int64>, Int32) | 按指定量向量向右移动 (signed) 的每个元素。 |
ShiftRightArithmetic(Vector<IntPtr>, Int32) | 按指定量向量向右移动 (signed) 的每个元素。 |
ShiftRightArithmetic(Vector<SByte>, Int32) | 按指定量向量向右移动 (signed) 的每个元素。 |
ShiftRightLogical(Vector<Byte>, Int32) | 按指定量向量向右移动(无符号)的每个元素。 |
ShiftRightLogical(Vector<Int16>, Int32) | 按指定量向量向右移动(无符号)的每个元素。 |
ShiftRightLogical(Vector<Int32>, Int32) | 按指定量向量向右移动(无符号)的每个元素。 |
ShiftRightLogical(Vector<Int64>, Int32) | 按指定量向量向右移动(无符号)的每个元素。 |
ShiftRightLogical(Vector<IntPtr>, Int32) | 按指定量向量向右移动(无符号)的每个元素。 |
ShiftRightLogical(Vector<SByte>, Int32) | 按指定量向量向右移动(无符号)的每个元素。 |
ShiftRightLogical(Vector<UInt16>, Int32) | 按指定量向量向右移动(无符号)的每个元素。 |
ShiftRightLogical(Vector<UInt32>, Int32) | 按指定量向量向右移动(无符号)的每个元素。 |
ShiftRightLogical(Vector<UInt64>, Int32) | 按指定量向量向右移动(无符号)的每个元素。 |
ShiftRightLogical(Vector<UIntPtr>, Int32) | 按指定量向量向右移动(无符号)的每个元素。 |
Sin(Vector<Double>) | 提供用于创建、操作和其他在泛型向量上运行的静态方法的集合。 |
Sin(Vector<Single>) | 提供用于创建、操作和其他在泛型向量上运行的静态方法的集合。 |
SinCos(Vector<Double>) | 提供用于创建、操作和其他在泛型向量上运行的静态方法的集合。 |
SinCos(Vector<Single>) | 提供用于创建、操作和其他在泛型向量上运行的静态方法的集合。 |
SquareRoot<T>(Vector<T>) | 返回一个新向量,其元素是指定向量元素的平方根。 |
Store<T>(Vector<T>, T*) | 将向量存储在给定的目标处。 |
StoreAligned<T>(Vector<T>, T*) | 将矢量存储在给定的对齐目标处。 |
StoreAlignedNonTemporal<T>(Vector<T>, T*) | 将矢量存储在给定的对齐目标处。 |
StoreUnsafe<T>(Vector<T>, T) | 将向量存储在给定的目标处。 |
StoreUnsafe<T>(Vector<T>, T, UIntPtr) | 将向量存储在给定的目标处。 |
Subtract<T>(Vector<T>, Vector<T>) | 返回一个新向量,其值是第二个向量中的元素与第一个向量中的相应元素之间的差异。 |
Sum<T>(Vector<T>) | 返回指定向量内所有元素的总和。 |
ToScalar<T>(Vector<T>) | 将给定向量转换为包含第一个元素值的标量。 |
Truncate(Vector<Double>) | 提供用于创建、操作和其他在泛型向量上运行的静态方法的集合。 |
Truncate(Vector<Single>) | 提供用于创建、操作和其他在泛型向量上运行的静态方法的集合。 |
Widen(Vector<Byte>, Vector<UInt16>, Vector<UInt16>) | 将 |
Widen(Vector<Int16>, Vector<Int32>, Vector<Int32>) | 将 |
Widen(Vector<Int32>, Vector<Int64>, Vector<Int64>) | 将 |
Widen(Vector<SByte>, Vector<Int16>, Vector<Int16>) | 将 |
Widen(Vector<Single>, Vector<Double>, Vector<Double>) | 将 |
Widen(Vector<UInt16>, Vector<UInt32>, Vector<UInt32>) | 将 |
Widen(Vector<UInt32>, Vector<UInt64>, Vector<UInt64>) | 将 |
WidenLower(Vector<Byte>) | 将 Vector<T> 的下半部分扩大为 Vector<T>。 |
WidenLower(Vector<Int16>) | 将 Vector<T> 的下半部分扩大为 Vector<T>。 |
WidenLower(Vector<Int32>) | 将 Vector<T> 的下半部分扩大为 Vector<T>。 |
WidenLower(Vector<SByte>) | 将 Vector<T> 的下半部分扩大为 Vector<T>。 |
WidenLower(Vector<Single>) | 将 Vector<T> 的下半部分扩大为 Vector<T>。 |
WidenLower(Vector<UInt16>) | 将 Vector<T> 的下半部分扩大为 Vector<T>。 |
WidenLower(Vector<UInt32>) | 将 Vector<T> 的下半部分扩大为 Vector<T>。 |
WidenUpper(Vector<Byte>) | 将 Vector<T> 的上半部分扩大为 Vector<T>。 |
WidenUpper(Vector<Int16>) | 将 Vector<T> 的上半部分扩大为 Vector<T>。 |
WidenUpper(Vector<Int32>) | 将 Vector<T> 的上半部分扩大为 Vector<T>。 |
WidenUpper(Vector<SByte>) | 将 Vector<T> 的上半部分扩大为 Vector<T>。 |
WidenUpper(Vector<Single>) | 将 Vector<T> 的上半部分扩大为 Vector<T>。 |
WidenUpper(Vector<UInt16>) | 将 Vector<T> 的上半部分扩大为 Vector<T>。 |
WidenUpper(Vector<UInt32>) | 将 Vector<T> 的上半部分扩大为 Vector<T>。 |
WithElement<T>(Vector<T>, Int32, T) | 创建一个新的 Vector<T>,该元素位于指定索引处设置为指定值,其余元素设置为与给定向量中的相同值。 |
Xor<T>(Vector<T>, Vector<T>) | 通过对两个向量中的每个元素对执行按位排他或( |
在C#中,Vector并不是一个内置的数据结构
性能:List<T>和Array在内存分配和性能方面通常优于Vector<T>。具体来说,List<T>在添加元素时会自动调整大小,而Array需要手动调整大小。这可能导致Vector<T>在某些情况下性能较差。
功能:List<T>和Array提供了更多的功能,如排序、查找和转换等。而Vector<T>主要用于线性代数计算,因此功能相对有限。
可扩展性:List<T>和Array更容易扩展和修改。例如,你可以使用LINQ查询来筛选、排序和转换List<T>和Array中的元素。而Vector<T>的功能相对有限,可能需要额外的库或工具来实现类似的操作。
兼容性:List<T>和Array是C#的核心数据结构,广泛应用于各种场景。而Vector<T>主要用于线性代数计算,可能不适用于所有场景。
语法:List<T>和Array的语法更简洁,易于理解和使用。而Vector<T>的语法可能相对复杂,特别是在进行线性代数计算时。
总之,Vector<T>主要用于线性代数计算,而List<T>和Array更适用于常规编程任务。在大多数情况下,建议使用List<T>或Array而不是Vector<T>。然而,如果你需要进行复杂的线性代数计算,Vector<T>可能是一个更好的选择。
https://www.yisu.com/ask/84957467.html