## Stack::Peek method


Gets element from stack top, but keeps it in stack.

```cpp
T System::Collections::Generic::Stack<T>::Peek()
```


### ReturnValue

Top element of the stack.

## See Also

* Class [Stack](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.PUB for C++](../../../)
