Allow() Method

Definition

Namespace SharpYaml
Assembly SharpYaml.dll

Checks whether the current event is of the specified type. If the event is of the specified type, returns it and moves to the next event. Otherwise retruns null.

public T? Allow<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.