Accept() Method

Definition

Namespace SharpYaml
Assembly SharpYaml.dll

Checks whether the current event is of the specified type.

public bool Accept<T>()
    where T : ParsingEvent

Type parameters

T
Type of the event.

Returns

Boolean
Returns true if the current event is of type T. Otherwise returns false.