public override void Write(char value) { if (NewLine.Contains(value)) { _endlineBuff += value; if (_endlineBuff == NewLine) { Contents.Add(_buffer.ToString()); _ = _buffer.Clear(); } else if (!NewLine.Contains(_endlineBuff)) { _ = _buffer.Append(_endlineBuff); _endlineBuff = ""; _ = _buffer.Append(value); } } else { _ = _buffer.Append(_endlineBuff); _endlineBuff = ""; _ = _buffer.Append(value); } }