System.Data.Common.DataTableMappingCollection.RemoveIndex(int)

Here are the examples of the csharp api class System.Data.Common.DataTableMappingCollection.RemoveIndex(int) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

3 Examples 7

1. Example

Project: referencesource
Source File: DataTableMappingCollection.cs
public void RemoveAt(int index) {
            RangeCheck(index);
            RemoveIndex(index);
        }

2. Example

Project: referencesource
Source File: DataTableMappingCollection.cs
public void RemoveAt(string sourceTable) {
            int index = RangeCheck(sourceTable);
            RemoveIndex(index);
        }

3. Example

Project: referencesource
Source File: DataTableMappingCollection.cs
public void Remove (DataTableMapping value) {
            if (null == value) {
                throw ADP.TablesAddNullAttempt ("value");
            }
            int index = IndexOf (value);

            if (-1 != index) {
                RemoveIndex (index);
            }
            else {
                throw ADP.CollectionRemoveInvalidObject (ItemType, this);
            }
        }