DotNext by Roman Sakno

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

 Collection

public static class Collection
Provides utility methods to work with collections.
public static void AddAll<T>(this ICollection<T> collection, IEnumerable<T> items)

Adds multiple items into collection.

public static ReadOnlyCollectionView<T> AsReadOnlyView<T>(this ICollection<T> collection)

Returns read-only view of the collection.

public static ReadOnlyCollectionView<I, O> Convert<I, O>(this IReadOnlyCollection<I> collection, Converter<I, O> converter)

Returns lazily converted read-only collection.

public static T[] ToArray<T>(ICollection<T> collection)

Converts collection into single-dimensional array.

public static T[] ToArray<T>(IReadOnlyCollection<T> collection)

Converts read-only collection into single-dimensional array.