stack class : Clear() method

Description

Removes all elements from the stack.

Syntax

stackInstance.Clear()

Arguments

None

Return value

None

Sample code

//anyStack is a instance of stack type.

anyStack.Clear();

Notes

It's a wrapper of the System.Collections.Generic.Stack<t>.Clear().

Links for reference

Copyright © Rice All rights reserved.