Home About Rice Downloads Documents Others Cooker CookerGX
Documents  >  Class  >  stack  >  Pop()
stack class : Pop() method

Description

Removes and returns the instance at the top of the stack.

Syntax

stackInstance.Pop()

Arguments

None

Return value

ClassDescription
someClassThe instance that was removed from the top of the stack.

Sample code

//anyStack is a instance of stack{string} type.

string str = anyStack.Pop();

Notes

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

Links for reference

Copyright © Rice All rights reserved.