示例#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.StreamEnd)
     {
         current = null;
         return(false);
     }
     else
     {
         // Generate the next event.
         current = StateMachine();
         return(true);
     }
 }
示例#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.StreamEnd)
			{
				current = null;
				return false;
			}
			else
			{
				// Generate the next event.
				current = StateMachine();
				return true;
			}
		}