Export (0) Print
Expand All

ImmutableStack<T> Methods

The ImmutableStack<T> type exposes the following members.

  Name Description
Public method Clear Removes all objects from the immutable stack.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method GetEnumerator Returns an enumerator that iterates through the immutable stack.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Peek Returns the object at the top of the stack without removing it.
Public method Pop() Removes the element at the top of the immutable stack and returns the stack after the removal.
Public method Pop(T) Removes the specified element from the immutable stack and returns the stack after the removal.
Public method Push Inserts an object at the top of the immutable stack and returns the new stack.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top

  Name Description
Public Extension Method Pop<T> Removes the specified item from an immutable stack. (Defined by ImmutableStack.)
Public Extension Method ToImmutableArray<T> [This topic is preliminary and is subject to change.]
Creates an immutable array from the specified collection.
(Defined by ImmutableArray.)
Public Extension Method ToImmutableDictionary<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.)
Public Extension Method ToImmutableDictionary<T, TKey>(Func<T, TKey>, IEqualityComparer<TKey>) Overloaded. Constructs an immutable dictionary based on some transformation of a sequence. (Defined by ImmutableDictionary.)
Public Extension Method ToImmutableDictionary<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.)
Public Extension Method ToImmutableDictionary<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.)
Public Extension Method ToImmutableDictionary<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.)
Public Extension Method ToImmutableHashSet<T>() Overloaded. Enumerates a sequence and produces an immutable hash set of its contents. (Defined by ImmutableHashSet.)
Public Extension Method ToImmutableHashSet<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.)
Public Extension Method ToImmutableList<T> Enumerates a sequence and produces an immutable list of its contents. (Defined by ImmutableList.)
Public Extension Method ToImmutableSortedDictionary<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.)
Public Extension Method ToImmutableSortedDictionary<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.)
Public Extension Method ToImmutableSortedDictionary<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.)
Public Extension Method ToImmutableSortedSet<T>() Overloaded. Enumerates a sequence and produces an immutable sorted set of its contents. (Defined by ImmutableSortedSet.)
Public Extension Method ToImmutableSortedSet<T>(IComparer<T>) Overloaded. Enumerates a sequence, produces an immutable sorted set of its contents, and uses the specified comparer. (Defined by ImmutableSortedSet.)
Top

  Name Description
Explicit interface implemetation Private method IEnumerable<T>.GetEnumerator Returns an enumerator that iterates through the collection.
Explicit interface implemetation Private method IEnumerable.GetEnumerator Returns an enumerator that iterates through a collection.
Explicit interface implemetation Private method IImmutableStack<T>.Clear Removes all elements from the immutable stack.
Explicit interface implemetation Private method IImmutableStack<T>.Pop Removes the element at the top of the immutable stack and returns the new stack.
Explicit interface implemetation Private method IImmutableStack<T>.Push Inserts an element at the top of the immutable stack and returns the new stack.
Top
Show:
© 2014 Microsoft