ImmutableList Class

 

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)

Namespace:   System.Collections.Immutable
Assembly:  System.Collections.Immutable (in System.Collections.Immutable.dll)

System::Object
  System.Collections.Immutable::ImmutableList

[ExtensionAttribute]
public ref class ImmutableList abstract sealed 

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticCreate<T>()

Creates an empty immutable list.

System_CAPS_pubmethodSystem_CAPS_staticCreate<T>(T)

Creates a new immutable list that contains the specified item.

System_CAPS_pubmethodSystem_CAPS_staticCreate<T>(array<T>^)

Creates a new immutable list that contains the specified array of items.

System_CAPS_pubmethodSystem_CAPS_staticCreateBuilder<T>()

Creates a new immutable list builder.

System_CAPS_pubmethodSystem_CAPS_staticCreateRange<T>(IEnumerable<T>^)

Creates a new immutable list that contains the specified items.

System_CAPS_pubmethodSystem_CAPS_staticIndexOf<T>(IImmutableList<T>^, T)

Searches for the specified object and returns the zero-based index of the first occurrence within the list.

System_CAPS_pubmethodSystem_CAPS_staticIndexOf<T>(IImmutableList<T>^, T, IEqualityComparer<T>^)

Searches for the specified object and returns the zero-based index of the first occurrence within the list.

System_CAPS_pubmethodSystem_CAPS_staticIndexOf<T>(IImmutableList<T>^, T, Int32)

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.

System_CAPS_pubmethodSystem_CAPS_staticIndexOf<T>(IImmutableList<T>^, T, Int32, Int32)

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.

System_CAPS_pubmethodSystem_CAPS_staticLastIndexOf<T>(IImmutableList<T>^, T)

Searches for the specified object and returns the zero-based index of the last occurrence within the entire immutable list.

System_CAPS_pubmethodSystem_CAPS_staticLastIndexOf<T>(IImmutableList<T>^, T, IEqualityComparer<T>^)

Searches for the specified object and returns the zero-based index of the last occurrence within the entire immutable list.

System_CAPS_pubmethodSystem_CAPS_staticLastIndexOf<T>(IImmutableList<T>^, T, Int32)

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.

System_CAPS_pubmethodSystem_CAPS_staticLastIndexOf<T>(IImmutableList<T>^, T, Int32, Int32)

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.

System_CAPS_pubmethodSystem_CAPS_staticRemove<T>(IImmutableList<T>^, T)

Removes the specified value from this list.

System_CAPS_pubmethodSystem_CAPS_staticRemoveRange<T>(IImmutableList<T>^, IEnumerable<T>^)

Removes the specified values from this list.

System_CAPS_pubmethodSystem_CAPS_staticReplace<T>(IImmutableList<T>^, T, T)

Replaces the first equal element in the list with the specified element.

System_CAPS_pubmethodSystem_CAPS_staticToImmutableList<TSource>(IEnumerable<TSource>^)

Enumerates a sequence and produces an immutable list of its contents.

This type is thread safe.

Return to top
Show: