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); }
public bool IsSameAs(BufferedChar other) { return _value == other._value && Foreground == other.Foreground && Background == other.Background; }