Share via


Stack.Peek Method

Returns the object at the top of the Stack without removing it.

Namespace: System.Collections
Assembly: mscorlib (in mscorlib.dll)

Syntax

[MethodImplAttribute(InternalCall)]
public virtual Object Peek ()

Return Value

The object at the top of the Stack.

Version Information

Available in the .NET Micro Framework version 4.1.

See Also

Reference

Stack Class
Stack Members
System.Collections Namespace