ImmutableStack(Of T) Class

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

System.Object
  System.Collections.Immutable.ImmutableStack(Of T)

<DebuggerDisplayAttribute("IsEmpty = {IsEmpty}; Top = {_head}")>
Public NotInheritable Class ImmutableStack(Of T)
	Implements IImmutableStack(Of T), IEnumerable(Of T), IEnumerable

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(Of 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(Of T).Clear()

Removes all elements from the immutable stack.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIImmutableStack(Of T).Pop()

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

System_CAPS_pubinterfaceSystem_CAPS_privmethodIImmutableStack(Of T).Push(T)

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

NameDescription
System_CAPS_pubmethodPop(Of T)(T)

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

System_CAPS_pubmethodToImmutableArray(Of T)()

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

System_CAPS_pubmethodToImmutableDictionary(Of T, TKey)(Func(Of 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(Of T, TKey)(Func(Of T, TKey), IEqualityComparer(Of TKey))

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

System_CAPS_pubmethodToImmutableDictionary(Of T, TKey, TValue)(Func(Of T, TKey), Func(Of T, TValue))

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

System_CAPS_pubmethodToImmutableDictionary(Of T, TKey, TValue)(Func(Of T, TKey), Func(Of T, TValue), IEqualityComparer(Of 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(Of T, TKey, TValue)(Func(Of T, TKey), Func(Of T, TValue), IEqualityComparer(Of TKey), IEqualityComparer(Of 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(Of T)()

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

System_CAPS_pubmethodToImmutableHashSet(Of T)(IEqualityComparer(Of 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(Of T)()

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

System_CAPS_pubmethodToImmutableSortedDictionary(Of T, TKey, TValue)(Func(Of T, TKey), Func(Of T, TValue))

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

System_CAPS_pubmethodToImmutableSortedDictionary(Of T, TKey, TValue)(Func(Of T, TKey), Func(Of T, TValue), IComparer(Of 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(Of T, TKey, TValue)(Func(Of T, TKey), Func(Of T, TValue), IComparer(Of TKey), IEqualityComparer(Of 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(Of T)()

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

System_CAPS_pubmethodToImmutableSortedSet(Of T)(IComparer(Of 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: