IImmutableList<T>
public interface IImmutableList<T> : IReadOnlyList<T>, IEnumerable<T>, IEnumerable, IReadOnlyCollection<T>
Represents a list of elements that cannot be modified.
NuGet package: System.Collections.Immutable (about immutable collections and how to install)
Makes a copy of the list, and adds the specified object to the end of the copied list.
Makes a copy of the list and adds the specified objects to the end of the copied list.
Creates a list with all the items removed, but with the same sorting and ordering semantics as this list.
Searches for the specified object and returns the zero-based index of the first occurrence within the range of elements in the IImmutableList<T> that starts at the specified index and contains the specified number of elements.
Inserts the specified element at the specified index in the immutable list.
Inserts the specified elements at the specified index in the immutable list.
Searches for the specified object and returns the zero-based index of the last occurrence within the range of elements in the IImmutableList<T> that contains the specified number of elements and ends at the specified index.
Removes the first occurrence of a specified object from this immutable list.
Removes all the elements that match the conditions defined by the specified predicate.
Removes the element at the specified index of the immutable list.
Removes the specified object from the list.
Removes a range of elements from the IImmutableList<T>.
Returns a new list with the first matching element in the list replaced with the specified element.
Replaces an element in the list at a given position with the specified element.