ImmutableStack<T>.PeekRef 方法
定义
获取对堆栈顶部的元素的只读引用。Gets a read-only reference to the element on the top of the stack.
public:
T& ^ PeekRef();
public ref readonly T PeekRef ();
member this.PeekRef : unit -> 'T
Public Function PeekRef () As T
返回
- T
对堆栈顶部的元素的只读引用。A read-only reference to the element on the top of the stack.
例外
在堆栈为空时引发。Thrown when the stack is empty.