System.Collections.Immutable.ImmutableList<T>
public sealed class ImmutableList<T> : IImmutableList<T>, IReadOnlyList<T>, IEnumerable<T>, IEnumerable, IReadOnlyCollection<T>, IList<T>, ICollection<T>, IList, ICollection, IStrongEnumerable<T, Enumerator<T>>
Represents an immutable list, which is a strongly typed list of objects that can be accessed by index.
NuGet package: System.Collections.Immutable (about immutable collections and how to install)
public sealed class Builder<T> : IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable, IList, ICollection, IReadOnlyList<T>, IReadOnlyCollection<T>
Represents a list that mutates with little or no memory allocations and that can produce or build on immutable list instances very efficiently.
NuGet package: System.Collections.Immutable (about immutable collections and how to install)
public struct Enumerator<T> : IEnumerator<T>, IEnumerator, IDisposable, ISecurePooledObjectUser, IStrongEnumerator<T>
Enumerates the contents of a binary tree.
NuGet package: System.Collections.Immutable (about immutable collections and how to install)
Gets an empty immutable list.
Gets the number of elements contained in the list.
Gets a value that indicates whether this list is empty.
Gets the element at the specified index of the list.
Adds the specified object to the end of the immutable list.
Adds the elements of the specified collection to the end of the immutable list.
Searches the entire sorted list for an element using the default comparer and returns the zero-based index of the element.
Searches the entire sorted list for an element using the specified comparer and returns the zero-based index of the element.
Searches a range of elements in the sorted list for an element using the specified comparer and returns the zero-based index of the element.
Removes all elements from the immutable list.
Determines whether this immutable list contains the specified value.
Converts the elements in the current immutable list to another type, and returns a list containing the converted elements.
Copies the entire immutable list to a compatible one-dimensional array, starting at the beginning of the target array.
Copies the entire immutable list to a compatible one-dimensional array, starting at the specified index of the target array.
Copies a range of elements from the immutable list to a compatible one-dimensional array, starting at the specified index of the target array.
Determines whether the immutable list contains elements that match the conditions defined by the specified predicate.
Searches for an element that matches the conditions defined by the specified predicate, and returns the first occurrence within the entire immutable list.
Retrieves all the elements that match the conditions defined by the specified predicate.
Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the entire immutable list.
Searches for an element that matches the conditions defined by the specified predicate, 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 an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the range of elements in the immutable list that starts at the specified index and contains the specified number of elements.
Searches for an element that matches the conditions defined by the specified predicate, and returns the last occurrence within the entire immutable list.
Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the entire immutable list.
Searches for an element that matches the conditions defined by the specified predicate, 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 an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the range of elements in the immutable list that contains the specified number of elements and ends at the specified index.
Performs the specified action on each element of the immutable list.
Returns an enumerator that iterates through the immutable list.
Creates a shallow copy of a range of elements in the source immutable list.
Searches for the specified object and returns the zero-based index of the first occurrence within the range of elements in the list that starts at the specified index and contains the specified number of elements.
Searches for the specified object and returns the zero-based index of the first occurrence within the entire immutable list.
Inserts the specified object into the immutable list at the specified index.
Inserts the elements of a collection into the immutable list at the specified index.
Gets a read-only reference to the element of the set at the given index.
Searches for the specified object and returns the zero-based index of the last occurrence within the range of elements in the list that contains the specified number of elements and ends at the specified index.
Removes the first occurrence of the specified object from this immutable list.
Removes the first occurrence of the object that matches the specified value from this immutable list.
Removes all the elements that match the conditions defined by the specified predicate.
Removes the element at the specified index.
Removes a range of elements, starting from the specified index and containing the specified number of elements, from this immutable list.
Removes a range of elements from this immutable list.
Removes the specified values from this list.
Replaces the specified element in the immutable list with a new element.
Replaces the specified element in the immutable list with a new element.
Reverses the order of the elements in the entire immutable list.
Reverses the order of the elements in the specified range of the immutable list.
Replaces an element at a given position in the immutable list with the specified element.
Sorts the elements in the entire immutable list using the default comparer.
Sorts the elements in the entire immutable list using the specified comparer.
Sorts the elements in the entire immutable list using the specified comparer.
Sorts a range of elements in the immutable list using the specified comparer.
Creates a list that has the same contents as this list and can be efficiently mutated across multiple operations using standard mutable interfaces.
Determines whether every element in the immutable list matches the conditions defined by the specified predicate.