EnumerableExtensions.ToList method

Version 1.1.28
.NET Framework 4.8
Namespace Skybrud.Essentials.Collections.Extensions
Assembly Skybrud.Essentials.dll

ToList(IEnumerable, Type)

Extension method

Creates an IList from an IEnumerable .

public static IList ToList(this IEnumerable source, Type targetType)

Parameters

source IEnumerable

The IEnumerable to create an IList from.

targetType Type

The type of the elements of source.

Returns

An IList that contains elements from the input sequence.