YamlDotNet - A .NET library for parsing and emitting YAML
Expect<(Of <(<'T>)>)> Method
NamespacesYamlDotNet.CoreEventReaderExpect<(Of <<'(T>)>>)()()()()

[This is preliminary documentation and is subject to change.]

Ensures that the current event is of the specified type, returns it and moves to the next event.
Declaration Syntax
C#Visual BasicVisual C++
public T Expect<T>()
where T : ParsingEvent
Public Function Expect(Of T As ParsingEvent) As T
public:
generic<typename T>
where T : ParsingEvent
T Expect()
Generic Template Parameters
T
Type of the ParsingEvent.
Return Value
Returns the current event.
Exceptions
ExceptionCondition
YamlExceptionIf the current event is not of the specified type.

Assembly: YamlDotNet.Core (Module: YamlDotNet.Core) Version: 0.2.4456.17949