Share via


Extensions.Peek<T>(IReadOnlyList<T>) Method

Definition

public static T Peek<T> (this System.Collections.Generic.IReadOnlyList<T> stack);
static member Peek : System.Collections.Generic.IReadOnlyList<'T> -> 'T
<Extension()>
Public Function Peek(Of T) (stack As IReadOnlyList(Of T)) As T

Type Parameters

T

Parameters

stack
IReadOnlyList<T>

Returns

T

Applies to