The recording of the first ever ReactiveUI virtual conference is available on our YouTube Channel.

EnumerableEx.

AsArray<T>(IEnumerable<T>) Method

Summary

Casts the enumerable to an array if it is already an array. Otherwise call ToArray.
Namespace
DynamicData.Kernel
Containing Type
EnumerableEx

Syntax

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

Type Parameters

Name Description
T The type of the item.

Parameters

Name Type Description
source IEnumerable<T> The source.

Return Value

Type Description
T[] The array of items.