Skip to content

Latest commit

 

History

History
75 lines (63 loc) · 2.85 KB

System.Collections.Generic.md

File metadata and controls

75 lines (63 loc) · 2.85 KB

System.Collections.Generic


EnumerableExtensions

Provides extension methods for asynchronous enumeration of collections.

public static class EnumerableExtensions

Static Methods

CountAsync

Task<int> CountAsync(this IEnumerable<T> source, CancellationToken cancellationToken = null)

Summary: Asynchronously counts the elements in a sequence.

Parameters:
     source  -  The source sequence to count.
     cancellationToken  -  A to observe while waiting for the asynchronous operation to complete.

Returns: A task that represents the asynchronous operation. The task result contains the number of elements in the sequence.

ToAsyncEnumerable

IAsyncEnumerable<T> ToAsyncEnumerable(this IEnumerable<T> source, CancellationToken cancellationToken = null)

Summary: Converts an System.Collections.Generic.IEnumerable1to anSystem.Collections.Generic.IAsyncEnumerable1.

Parameters:
     source  -  The source sequence to convert.
     cancellationToken  -  A to observe while waiting for the asynchronous operation to complete.

Returns: An System.Collections.Generic.IAsyncEnumerable1` that contains the elements from the input sequence.

ToListAsync

Task<List<T>> ToListAsync(this IEnumerable<T> source, CancellationToken cancellationToken = null)

Summary: Asynchronously creates a System.Collections.Generic.List1from anSystem.Collections.Generic.IEnumerable1.

Parameters:
     source  -  The source sequence to convert to a list.
     cancellationToken  -  A to observe while waiting for the asynchronous operation to complete.

Returns: A task that represents the asynchronous operation. The task result contains a list with the elements from the input sequence.


ReadOnlyListExtensions

public static class ReadOnlyListExtensions

Static Methods

GetPowerSet

IEnumerable<IEnumerable<T>> GetPowerSet(this IReadOnlyList<T> list)

GetUniqueCombinations

IEnumerable<IEnumerable<string>> GetUniqueCombinations(this IReadOnlyList<string> list)

GetUniqueCombinationsAsCommaSeparated

IEnumerable<string> GetUniqueCombinationsAsCommaSeparated(this IReadOnlyList<string> list)

Generated by MarkdownCodeDoc version 1.2