Peek() Method

Definition

Namespace SharpYaml
Assembly SharpYaml.dll

Gets the next event without consuming it.

public T? Peek<T>()
    where T : ParsingEvent

Type parameters

T
Type of the ParsingEvent.

Returns

{T}
Returns the current event if it is of type T; otherwise returns null.