Namespace: Assorted.Utils.Collections
Assembly: Assorted.Utils (Assorted.Utils.dll) version 1.1.0.0
Executes the deferred operations of the sequence if there is any, and returns the evaluated sequence as an array.
public static TSource[] AsArray<TSource>(this IEnumerable<TSource> source)
TSource
The type of elements in the source
.
source
: IEnumerable<TSource>
A sequence of values.
TSource[]
The source
sequence if it is already an array; otherwise, an array that contains values from the input sequence.
Exception | Description |
---|---|
System.ArgumentNullException | source is null . |
This document is generated by DG.