NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Stack.ToArray

Copies the Stack into a new array.

[Visual Basic]
Overridable Public Function ToArray() As Object ()
[C#]
public virtual object[] ToArray();
[C++]
public: virtual Object* ToArray() [];
[JScript]
public function ToArray() : Object[];

Return Value

A new array containing copies of the Stack 's elements.

Remarks

This method can be overridden by a derived class.

The elements are copied onto the array in a last-in-first-out order, similar to the order a succession of calls to Pop would return the elements.

See Also

Stack Class | Stack Members | System.Collections Namespace | CopyTo | Pop