Interface IStackManager<TFrame>
public interface IStackManager<TFrame> where TFrame : IStackFrame, IEquatable<TFrame>
Type Parameters
TFrame
Methods
Clear()
Clears the managed stack.
void Clear()
TryPop(out TFrame)
Pops the top-most frame from the managed stack.
bool TryPop(out TFrame frame)
Parameters
frameTFrameThe retrieved stack frame, if successful.
Returns
- bool
trueif the frame was successfully popped,falseotherwise.
TryPush(TFrame)
Pushes the specified frame to the managed stack.
bool TryPush(TFrame frame)
Parameters
frameTFrameThe stack frame to be pushed.
Returns
- bool
trueif the frame was successfully pushed,falseotherwise.