List
Provides various extensions for IList<T> interface.
Provides strongly-typed access to list indexer.
public static ReadOnlyListView<TInput, TOutput> Convert<TInput, TOutput>(this IReadOnlyList<TInput> list, Converter<TInput, TOutput> converter)
Returns lazily converted read-only list.
Returns get_Item as delegate
attached to the list instance.
Returns get_Item as delegate
attached to the list instance.
Returns set_Item as delegate
attached to the list instance.
Inserts an item to the list at the specified index.
public static int InsertOrdered<T, TComparer>(this List<T> list, T item, TComparer comparer) where TComparer : IComparer<T>
Inserts the item into sorted list.
public static int InsertOrdered<T, TComparer>(this IList<T> list, T item, TComparer comparer) where TComparer : IComparer<T>
Inserts the item into sorted list.
Inserts the item into sorted list.
Removes the item at the specifie index.
Removes a range of elements from list.
Constructs read-only list with a single item in it.
Returns slice of the list.
public static TOutput[] ToArray<TInput, TOutput>(this IList<TInput> input, Converter<TInput, TOutput> mapper)
Converts list into array and perform mapping for each
element.
public static TOutput[] ToArray<TInput, TOutput>(this IList<TInput> input, Func<int, TInput, TOutput> mapper)
Converts list into array and perform mapping for each
element.