ImmutableList
Provides a set of initialization methods for instances of the ImmutableList<T> class.
NuGet package: System.Collections.Immutable (about immutable collections and how to install)
Creates an empty immutable list.
Creates a new immutable list that contains the specified item.
Creates a new immutable list that contains the specified array of items.
Creates a new immutable list builder.
Creates a new immutable list that contains the specified items.
Searches for the specified object and returns the zero-based index of the first occurrence within the list.
public static int IndexOf<T>(this IImmutableList<T> list, T item, IEqualityComparer<T> equalityComparer)
Searches for the specified object and returns the zero-based index of the first occurrence within the list.
Searches for the specified object and returns the zero-based index of the first occurrence within the range of elements in the immutable list that extends from the specified index to the last element.
Searches for the specified object and returns the zero-based index of the first occurrence within the range of elements in the immutable list that extends from the specified index to the last element.
Searches for the specified object and returns the zero-based index of the last occurrence within the entire immutable list.
public static int LastIndexOf<T>(this IImmutableList<T> list, T item, IEqualityComparer<T> equalityComparer)
Searches for the specified object and returns the zero-based index of the last occurrence within the entire immutable list.
Searches for the specified object and returns the zero-based index of the last occurrence within the range of elements in the immutable list that extends from the first element to the specified index.
Searches for the specified object and returns the zero-based index of the last occurrence within the range of elements in the immutable list that extends from the first element to the specified index.
Removes the specified value from this list.
Removes the specified values from this list.
Replaces the first equal element in the list with the specified element.
Enumerates a sequence and produces an immutable list of its contents.