Alsing.SourceCode.UndoBlockCollection.RemoveAt C# (CSharp) 메소드

RemoveAt() 공개 메소드

public RemoveAt ( int index ) : void
index int
리턴 void
        public void RemoveAt(int index)
        {
            ValidateIndex(index); // throws

            ++m_version;
            m_count--;
            // for (int i=index; i < m_count; ++i) m_array[i] = m_array[i+1];
            Array.Copy(m_array, index + 1, m_array, index, m_count - index);

            if (NeedsTrimming())
                Trim();
        }