Пример #1
0
 public char?ReadNext()
 {
     if (CharBuffer.Count > 0)
     {
         BufferedChar buffered = CharBuffer.Dequeue();
         CurrentChar   = buffered.StoredChar;
         CurrentColumn = buffered.StoredCharColumn;
         CurrentLine   = buffered.StoredCharLine;
     }
     else
     {
         CurrentChar   = ReadNextFromSource();
         CurrentColumn = ReaderColumn;
         CurrentLine   = ReaderLine;
     }
     return(CurrentChar);
 }
Пример #2
0
 public bool IsSameAs(BufferedChar other)
 {
     return _value == other._value && Foreground == other.Foreground && Background == other.Background;
 }