public ReadWriteTypingBuffer(ReadOnlyTypingBuffer original) { if (original == null) throw new ArgumentNullException("original.", "Original TextBuffer cannot be null."); Original = original; Buffer = new char[original.Length + 1]; Length = 0; RecordedKeys = new KeyBuffer(Buffer.Length); ErrorsUncorrected = new List<int>(); }
public ReadWriteTypingBuffer(ReadOnlyTypingBuffer original) { if (original == null) { throw new ArgumentNullException("original.", "Original TextBuffer cannot be null."); } Original = original; Buffer = new char[original.Length + 1]; Length = 0; RecordedKeys = new KeyBuffer(Buffer.Length); ErrorsUncorrected = new List <int>(); }