Export (0) Print
Expand All

Stack Members

Stack overview

Public Constructors

public constructorStack Constructor

Supported by the .NET Compact Framework.

Overloaded. Initializes a new instance of the Stack class.

Public Properties

public propertyCount

Supported by the .NET Compact Framework.

Gets the number of elements contained in the Stack.
public propertyIsSynchronized

Supported by the .NET Compact Framework.

Gets a value indicating whether access to the Stack is synchronized (thread-safe).
public propertySyncRoot

Supported by the .NET Compact Framework.

Gets an object that can be used to synchronize access to the Stack.

Public Methods

public methodClear Removes all objects from the Stack.
public methodClone Creates a shallow copy of the Stack.
public methodContains Determines whether an element is in the Stack.
public methodCopyTo Copies the Stack to an existing one-dimensional Array, starting at the specified array index.
public methodEquals (inherited from Object)

Supported by the .NET Compact Framework.

Overloaded. Determines whether two Object instances are equal.
public methodGetEnumerator

Supported by the .NET Compact Framework.

Returns an IEnumerator for the Stack.
public methodGetHashCode (inherited from Object)

Supported by the .NET Compact Framework.

Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetType (inherited from Object)

Supported by the .NET Compact Framework.

Gets the Type of the current instance.
public methodPeek

Supported by the .NET Compact Framework.

Returns the object at the top of the Stack without removing it.
public methodPop

Supported by the .NET Compact Framework.

Removes and returns the object at the top of the Stack.
public methodPush

Supported by the .NET Compact Framework.

Inserts an object at the top of the Stack.
public methodstatic (Shared in Visual Basic)Synchronized

Supported by the .NET Compact Framework.

Returns a synchronized (thread-safe) wrapper for the Stack.
public methodToArray

Supported by the .NET Compact Framework.

Copies the Stack to a new array.
public methodToString (inherited from Object)

Supported by the .NET Compact Framework.

Returns a String that represents the current Object.

Protected Methods

protected methodFinalize (inherited from Object)

Supported by the .NET Compact Framework.

Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object)

Supported by the .NET Compact Framework.

Creates a shallow copy of the current Object.

See Also

Stack Class | System.Collections Namespace

Show:
© 2014 Microsoft