System.Collections.Generic.StackPolyfills static class StackPolyfills Documentation Code public static bool TryPeek<T>(this Stack<T> stack, out T result) public static bool TryPop<T>(this Stack<T> stack, out T result)