AvalonEdit
ImmutableStack<(Of <(<'T>)>)> Class
NamespacesICSharpCode.AvalonEdit.UtilsImmutableStack<(Of <(<'T>)>)>
An immutable stack. Using 'foreach' on the stack will return the items from top to bottom (in the order they would be popped).
Declaration Syntax
C#Visual BasicVisual C++
[SerializableAttribute]
public sealed class ImmutableStack<T> : IEnumerable<T>, 
	IEnumerable
<SerializableAttribute> _
Public NotInheritable Class ImmutableStack(Of T) _
	Implements IEnumerable(Of T), IEnumerable
[SerializableAttribute]
generic<typename T>
public ref class ImmutableStack sealed : IEnumerable<T>, 
	IEnumerable
Generic Template Parameters
T
Members
All MembersMethodsPropertiesFields



IconMemberDescription
Empty
Gets the empty stack instance.

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
GetEnumerator()()()()
Gets an enumerator that iterates through the stack top-to-bottom.

GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
IsEmpty
Gets if this stack is empty.

Peek()()()()
Gets the item on the top of the stack.

PeekOrDefault()()()()
Gets the item on the top of the stack. Returns default(T) if the stack is empty.

Pop()()()()
Gets the stack with the top item removed.

Push(T)
Pushes an item on the stack. This does not modify the stack itself, but returns a new one with the value pushed.

ToString()()()()
Returns a String that represents the current Object.
(Overrides Object.ToString()()()().)
Inheritance Hierarchy
Object
ImmutableStack<(Of <(<'T>)>)>

Assembly: ICSharpCode.AvalonEdit (Module: ICSharpCode.AvalonEdit.dll) Version: 5.0.0.4238