Skip to content

Latest commit

 

History

History
42 lines (26 loc) · 1.32 KB

Assorted.Utils.Collections.EnumerableExtensions.AsArray.md

File metadata and controls

42 lines (26 loc) · 1.32 KB

EnumerableExtensions.AsArray<TSource>(this IEnumerable<TSource>) Method

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.

Syntax

public static TSource[] AsArray<TSource>(this IEnumerable<TSource> source)

Type Parameters

TSource
The type of elements in the source.

Parameters

source: IEnumerable<TSource>
A sequence of values.

Return Value

TSource[]
The source sequence if it is already an array; otherwise, an array that contains values from the input sequence.

Exceptions

Exception Description
System.ArgumentNullException source is null.

See Also


This document is generated by DG.