Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))

Stack.Push Method

Class

System.Collections.Stack (standard version)

System.Collections.Generic.Stack (generic version)

Syntax

stackVariable.Push(obj)

obj (required; any)

The item to place on the stack

Description

The Push method places an object on the top of the stack.

Version Differences

Visual Basic 2005 adds support for generics to stacks, as discussed in Chapter 10.

See Also

Stack Class, Stack.Pop Method

Категории