Export (0) Print
Expand All

Stack Members

Represents a variable size last-in-first-out (LIFO) collection of instances of the same arbitrary type.

The following tables list the members exposed by the Stack generic type.

  Name Description
Public method Supported by the .NET Compact Framework Stack Overloaded. Initializes a new instance of the Stack class.
Top

  Name Description
Public property Supported by the .NET Compact Framework Count Gets the number of elements contained in the Stack.
Top

(see also Protected Methods )
  Name Description
Public method Supported by the .NET Compact Framework Clear Removes all objects from the Stack.
Public method Supported by the .NET Compact Framework Contains Determines whether an element is in the Stack.
Public method Supported by the .NET Compact Framework CopyTo Copies the Stack to an existing one-dimensional Array, starting at the specified array index.
Public method Supported by the .NET Compact Framework Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method Supported by the .NET Compact Framework GetEnumerator Returns an enumerator for the Stack.
Public method Supported by the .NET Compact Framework GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method Supported by the .NET Compact Framework GetType  Gets the Type of the current instance. (inherited from Object)
Public method Supported by the .NET Compact Framework Peek Returns the object at the top of the Stack without removing it.
Public method Supported by the .NET Compact Framework Pop Removes and returns the object at the top of the Stack.
Public method Supported by the .NET Compact Framework Push Inserts an object at the top of the Stack.
Public method Static Supported by the .NET Compact Framework ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method Supported by the .NET Compact Framework ToArray Copies the Stack to a new array.
Public method Supported by the .NET Compact Framework ToString  Returns a String that represents the current Object. (inherited from Object)
Public method Supported by the .NET Compact Framework TrimExcess Sets the capacity to the actual number of elements in the Stack, if that number is less than 90 percent of current capacity.
Top

  Name Description
Protected method Supported by the .NET Compact Framework Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Protected method Supported by the .NET Compact Framework MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)
Top

  Name Description
Explicit interface implementation Method Supported by the .NET Compact Framework System.Collections.Generic.IEnumerable<T>.GetEnumerator Returns an enumerator that iterates through the collection.
Explicit interface implementation Method Supported by the .NET Compact Framework System.Collections.ICollection.CopyTo Copies the elements of the ICollection to an Array, starting at a particular Array index.
Explicit interface implementation Method Supported by the .NET Compact Framework System.Collections.IEnumerable.GetEnumerator Returns an enumerator that iterates through a collection.
Explicit interface implementation Property Supported by the .NET Compact Framework System.Collections.ICollection.IsSynchronized Gets a value indicating whether access to the ICollection is synchronized (thread safe).
Explicit interface implementation Property Supported by the .NET Compact Framework System.Collections.ICollection.SyncRoot Gets an object that can be used to synchronize access to the ICollection.
Top

Community Additions

ADD
Show:
© 2014 Microsoft