System.Data.Common.ADP.CollectionInvalidType(System.Type, System.Type, object)

Here are the examples of the csharp api class System.Data.Common.ADP.CollectionInvalidType(System.Type, System.Type, object) 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: AdapterUtil.cs
View license
static internal Exception NotADataColumnMapping(object value) {
            return CollectionInvalidType(typeof(DataColumnMappingCollection), typeof(DataColumnMapping), value);
        }

2. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal Exception NotADataTableMapping(object value) {
            return CollectionInvalidType(typeof(DataTableMappingCollection), typeof(DataTableMapping), value);
        }

3. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal Exception InvalidParameterType(IDataParameterCollection collection, Type parameterType, object invalidValue) {
            return CollectionInvalidType(collection.GetType(), parameterType, invalidValue);
        }