Export (0) Print
Expand All

Stack Constructor

.NET Framework 1.1

Initializes a new instance of the Stack class.

Overload List

Initializes a new instance of the Stack class that is empty and has the default initial capacity.

Supported by the .NET Compact Framework.

[Visual Basic] Public Sub New()
[C#] public Stack();
[C++] public: Stack();
[JScript] public function Stack();

Initializes a new instance of the Stack class that contains elements copied from the specified collection and has the same initial capacity as the number of elements copied.

[Visual Basic] Public Sub New(ICollection)
[C#] public Stack(ICollection);
[C++] public: Stack(ICollection*);
[JScript] public function Stack(ICollection);

Initializes a new instance of the Stack class that is empty and has the specified initial capacity or the default initial capacity, whichever is greater.

[Visual Basic] Public Sub New(Integer)
[C#] public Stack(int);
[C++] public: Stack(int);
[JScript] public function Stack(int);

See Also

Stack Class | Stack Members | System.Collections Namespace

Show:
© 2014 Microsoft