Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Collections.Generic.Stack< T > Class Template Reference

Classes

struct  Enumerator
 

Public Member Functions

 Stack ()
 
 Stack (int capacity)
 
 Stack (IEnumerable< T > collection)
 
void Clear ()
 
bool Contains (T item)
 
void CopyTo (T[] array, int arrayIndex)
 
Enumerator GetEnumerator ()
 
void TrimExcess ()
 
T Peek ()
 
bool TryPeek ([MaybeNullWhen(false)] out T result)
 
T Pop ()
 
bool TryPop ([MaybeNullWhen(false)] out T result)
 
void Push (T item)
 
int EnsureCapacity (int capacity)
 
T[] ToArray ()
 
void Add (T item)
 
bool Remove (T item)
 

Properties

int Count [get]
 
bool ICollection. IsSynchronized [get]
 
object ICollection. SyncRoot [get]
 
bool IsReadOnly [get]
 

Private Member Functions

void ICollection. CopyTo (Array array, int arrayIndex)
 
IEnumerator< T > IEnumerable< T >. GetEnumerator ()
 
IEnumerator IEnumerable. GetEnumerator ()
 
void PushWithResize (T item)
 
void Grow (int capacity)
 
void ThrowForEmptyStack ()
 

Private Attributes

T[] _array
 
int _size
 
int _version
 

Detailed Description

Definition at line 11 of file Stack.cs.


The documentation for this class was generated from the following file: