Export (0) Print
Expand All

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)

System.Object
  System.Collections.Immutable.ImmutableList

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

public static class ImmutableList

The ImmutableList type exposes the following members.

  NameDescription
Public methodStatic memberCreate<T>()Creates an empty immutable list.
Public methodStatic memberCreate<T>(T)Creates a new immutable list that contains the specified item.
Public methodStatic memberCreate<T>(T[])Creates a new immutable list that contains the specified array of items.
Public methodStatic memberCreateBuilder<T>Creates a new immutable list builder.
Public methodStatic memberCreateRange<T>Creates a new immutable list that contains the specified items.
Public methodStatic memberIndexOf<T>(IImmutableList<T>, T)Searches for the specified object and returns the zero-based index of the first occurrence within the list.
Public methodStatic memberIndexOf<T>(IImmutableList<T>, T, IEqualityComparer<T>)Searches for the specified object and returns the zero-based index of the first occurrence within the list.
Public methodStatic memberIndexOf<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.
Public methodStatic memberIndexOf<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.
Public methodStatic memberLastIndexOf<T>(IImmutableList<T>, T)Searches for the specified object and returns the zero-based index of the last occurrence within the entire immutable list.
Public methodStatic memberLastIndexOf<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.
Public methodStatic memberLastIndexOf<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.
Public methodStatic memberLastIndexOf<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.
Public methodStatic memberRemove<T>Removes the specified value from this list.
Public methodStatic memberRemoveRange<T>Removes the specified values from this list.
Public methodStatic memberReplace<T>Replaces the first equal element in the list with the specified element.
Public methodStatic memberToImmutableList<TSource>Enumerates a sequence and produces an immutable list of its contents.
Top

This type is thread safe.

Show:
© 2015 Microsoft