System.Collections.Specialized.NameObjectCollectionBase.BaseRemoveAt C# (CSharp) Method

BaseRemoveAt() protected method

protected BaseRemoveAt ( int index ) : void
index int
return void
        protected void BaseRemoveAt(int index)
        {
            if (_readOnly)
                throw new NotSupportedException(SR.CollectionReadOnly);

            String key = BaseGetKey(index);

            if (key != null)
            {
                // remove from hashtable
                _entriesTable.Remove(key);
            }
            else
            { // null key -- special case
                // null out special 'null key' entry
                _nullKeyEntry = null;
            }

            // remove from array
            _entriesArray.RemoveAt(index);

            _version++;
        }