ImmutableStack<'T> Class

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

System.Object
  System.Collections.Immutable.ImmutableStack<'T>

No code example is currently available or this language may not be supported.

Type Parameters

T

The type of element on the stack.

NameDescription
System_CAPS_pubpropertySystem_CAPS_staticEmpty

Gets an empty immutable stack.

System_CAPS_pubpropertyIsEmpty

Gets a value that indicates whether this instance of the immutable stack is empty.

NameDescription
System_CAPS_pubmethodClear()

Removes all objects from the immutable stack.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodGetEnumerator()

Returns an enumerator that iterates through the immutable stack.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodPeek()

Returns the object at the top of the stack without removing it.

System_CAPS_pubmethodPop()

Removes the element at the top of the immutable stack and returns the stack after the removal.

System_CAPS_pubmethodPop('T)

Removes the specified element from the immutable stack and returns the stack after the removal.

System_CAPS_pubmethodPush('T)

Inserts an object at the top of the immutable stack and returns the new stack.

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIEnumerable<'T>.GetEnumerator()

Returns an enumerator that iterates through the collection.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIImmutableStack<'T>.Clear()

Removes all elements from the immutable stack.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIImmutableStack<'T>.Pop()

Removes the element at the top of the immutable stack and returns the new stack.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIImmutableStack<'T>.Push('T)

Inserts an element at the top of the immutable stack and returns the new stack.

NameDescription
System_CAPS_pubmethodPop<'T>('T)

Removes the specified item from an immutable stack.(Defined by ImmutableStack.)

System_CAPS_pubmethodToImmutableArray<'T>()

Creates an immutable array from the specified collection.(Defined by ImmutableArray.)

System_CAPS_pubmethodToImmutableDictionary<'T, 'TKey>(Func<'T, 'TKey>)

Overloaded. Constructs an immutable dictionary from an existing collection of elements, applying a transformation function to the source keys.(Defined by ImmutableDictionary.)

System_CAPS_pubmethodToImmutableDictionary<'T, 'TKey>(Func<'T, 'TKey>, IEqualityComparer<'TKey>)

Overloaded. Constructs an immutable dictionary based on some transformation of a sequence.(Defined by ImmutableDictionary.)

System_CAPS_pubmethodToImmutableDictionary<'T, 'TKey, 'TValue>(Func<'T, 'TKey>, Func<'T, 'TValue>)

Overloaded. Enumerates and transforms a sequence, and produces an immutable dictionary of its contents.(Defined by ImmutableDictionary.)

System_CAPS_pubmethodToImmutableDictionary<'T, 'TKey, 'TValue>(Func<'T, 'TKey>, Func<'T, 'TValue>, IEqualityComparer<'TKey>)

Overloaded. Enumerates and transforms a sequence, and produces an immutable dictionary of its contents by using the specified key comparer.(Defined by ImmutableDictionary.)

System_CAPS_pubmethodToImmutableDictionary<'T, 'TKey, 'TValue>(Func<'T, 'TKey>, Func<'T, 'TValue>, IEqualityComparer<'TKey>, IEqualityComparer<'TValue>)

Overloaded. Enumerates and transforms a sequence, and produces an immutable dictionary of its contents by using the specified key and value comparers.(Defined by ImmutableDictionary.)

System_CAPS_pubmethodToImmutableHashSet<'T>()

Overloaded. Enumerates a sequence and produces an immutable hash set of its contents.(Defined by ImmutableHashSet.)

System_CAPS_pubmethodToImmutableHashSet<'T>(IEqualityComparer<'T>)

Overloaded. Enumerates a sequence, produces an immutable hash set of its contents, and uses the specified equality comparer for the set type.(Defined by ImmutableHashSet.)

System_CAPS_pubmethodToImmutableList<'T>()

Enumerates a sequence and produces an immutable list of its contents.(Defined by ImmutableList.)

System_CAPS_pubmethodToImmutableSortedDictionary<'T, 'TKey, 'TValue>(Func<'T, 'TKey>, Func<'T, 'TValue>)

Overloaded. Enumerates and transforms a sequence, and produces an immutable sorted dictionary of its contents.(Defined by ImmutableSortedDictionary.)

System_CAPS_pubmethodToImmutableSortedDictionary<'T, 'TKey, 'TValue>(Func<'T, 'TKey>, Func<'T, 'TValue>, IComparer<'TKey>)

Overloaded. Enumerates and transforms a sequence, and produces an immutable sorted dictionary of its contents by using the specified key comparer.(Defined by ImmutableSortedDictionary.)

System_CAPS_pubmethodToImmutableSortedDictionary<'T, 'TKey, 'TValue>(Func<'T, 'TKey>, Func<'T, 'TValue>, IComparer<'TKey>, IEqualityComparer<'TValue>)

Overloaded. Enumerates and transforms a sequence, and produces an immutable sorted dictionary of its contents by using the specified key and value comparers.(Defined by ImmutableSortedDictionary.)

System_CAPS_pubmethodToImmutableSortedSet<'T>()

Overloaded. Enumerates a sequence and produces an immutable sorted set of its contents.(Defined by ImmutableSortedSet.)

System_CAPS_pubmethodToImmutableSortedSet<'T>(IComparer<'T>)

Overloaded. Enumerates a sequence, produces an immutable sorted set of its contents, and uses the specified comparer.(Defined by ImmutableSortedSet.)

This type is thread safe.

Return to top
Show: