Example #1
0
 public ConfigurationToken Expect(ConfigurationTokenKind tokenType, string message)
 {
     if (Current == null || Current.Kind != tokenType)
     {
         throw new InvalidOperationException(message);
     }
     return(Current);
 }
 public ConfigurationToken(ConfigurationTokenKind kind, string value)
 {
     _kind  = kind;
     _value = value;
 }