System.Data.Common.DataColumnMappingCollection.Replace C# (CSharp) Method

Replace() private method

private Replace ( int index, DataColumnMapping newValue ) : void
index int
newValue DataColumnMapping
return void
        private void Replace(int index, DataColumnMapping newValue)
        {
            Debug.Assert((null != _items) && (0 <= index) && (index < Count), "RemoveIndex, invalid");
            Validate(index, newValue);
            _items[index].Parent = null;
            newValue.Parent = this;
            _items[index] = newValue;
        }