コード例 #1
0
        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>();
        }
コード例 #2
0
        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>();
        }