你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
IEnumerableExtensions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
IEnumerable extension methods
public static class IEnumerableExtensions
type IEnumerableExtensions = class
Public Module IEnumerableExtensions
- Inheritance
-
IEnumerableExtensions
Methods
Batch<TSource>(IEnumerable<TSource>, Int32) |
Batches an enumerable into batches of the specified size. |
CoalesceEnumerable<TSource>(IEnumerable<TSource>) |
Coalesces the enumerable. |
Distinct<TSource,TKeyType>(IEnumerable<TSource>, Func<TSource,TKeyType>, IEqualityComparer<TKeyType>) |
Returns a distinct collection based on a key. |
DistinctArray<TSource>(IEnumerable<TSource>, IEqualityComparer<TSource>) |
Returns a distinct array. |
SelectArray<TSource,TResult>(IEnumerable<TSource>, Func<TSource,TResult>) |
Selects a collection and returns an array. |
SelectManyArray<TSource,TResult>(IEnumerable<TSource>, Func<TSource,IEnumerable<TResult>>) |
Selects a collection and returns an array. |
ToInsensitiveDictionary<TSource,TValue>(IEnumerable<TSource>, Func<TSource,String>, Func<TSource,TValue>) |
Creates an insensitive dictionary from an enumerable. |
ToInsensitiveDictionary<TValue>(IEnumerable<TValue>, Func<TValue,String>) |
Creates an insensitive dictionary from an enumerable. |