EnumerableExtensions.ToArray method
Version 1.1.28
.NET Framework 4.8
| Namespace | Skybrud.Essentials.Collections.Extensions |
|---|---|
| Assembly | Skybrud.Essentials.dll |
ToArray(IEnumerable, Type)
Extension method
Creates an array from a IEnumerable .
public static Array ToArray(this IEnumerable source, Type targetType)
Parameters
source
IEnumerable
An IEnumerable to create an array from.
targetType
Type
The type of the elements of source.
Returns
An array that contains the elements from the input sequence.