Here are the examples of the csharp api class System.Data.Common.DataColumnMappingCollection.Validate(int, System.Data.Common.DataColumnMapping) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
3 Examples
0
1. Example
View licenseprivate 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; }
0
2. Example
View licenseprivate void AddWithoutEvents(DataColumnMapping value) { Validate(-1, value); value.Parent = this; ArrayList().Add(value); }
0
3. Example
View licensepublic void Insert(int index, DataColumnMapping value) { if (null == value) { throw ADP.ColumnsAddNullAttempt("value"); } Validate(-1, value); value.Parent = this; ArrayList().Insert(index, value); }