Beispiel #1
0
 /// <summary>
 /// Moves to the next event.
 /// </summary>
 /// <returns>Returns true if there are more events available, otherwise returns false.</returns>
 public bool MoveNext()
 {
     // No events after the end of the stream or error.
     if (state == ParserState.YAML_PARSE_END_STATE)
     {
         current = null;
         return(false);
     }
     else
     {
         // Generate the next event.
         current = StateMachine();
         return(true);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Moves to the next event.
 /// </summary>
 /// <returns>Returns true if there are more events available, otherwise returns false.</returns>
 public bool MoveNext()
 {
     // No events after the end of the stream or error.
     if (state == ParserState.YAML_PARSE_END_STATE)
     {
         current = null;
         return false;
     }
     else
     {
         // Generate the next event.
         current = StateMachine();
         return true;
     }
 }