DotNext by Roman Sakno

<PackageReference Include="DotNext" Version="0.3.0" />

 List

public static class List
Provides various extensions for IList<T> interface.
public static class Indexer<T>

Provides strongly-typed access to list indexer.

public static ReadOnlyListView<T> AsReadOnlyView<T>(this IList<T> list)

Returns read-only view of the list.

public static ReadOnlyListView<I, O> Convert<I, O>(this IReadOnlyList<I> list, Converter<I, O> converter)

Returns lazily converted read-only list.

public static Func<int, T> IndexerGetter<T>(this IReadOnlyList<T> list)

Returns get_Item as delegate attached to the list instance.

public static Func<int, T> IndexerGetter<T>(this IList<T> list)

Returns get_Item as delegate attached to the list instance.

public static Action<int, T> IndexerSetter<T>(this IList<T> list)

Returns set_Item as delegate attached to the list instance.

public static IReadOnlyList<T> Singleton<T>(T item)

Constructs read-only list with single item in it.

public static O[] ToArray<I, O>(this IList<I> input, Converter<I, O> mapper)

Converts list into array and perform mapping for each element.

public static O[] ToArray<I, O>(this IList<I> input, Func<int, I, O> mapper)

Converts list into array and perform mapping for each element.