System.Data.Common.DataStorage.GetStorageType(System.Type)

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

4 Examples 7

1. Example

Project: referencesource
Source File: DataStorage.cs
View license
internal static bool IsTypeCustomType(Type type) {
            return IsTypeCustomType(GetStorageType(type));
        }

2. Example

Project: referencesource
Source File: DataStorage.cs
View license
internal static bool ImplementsINullableValue(StorageType typeCode, Type dataType) {
            Debug.Assert(typeCode == GetStorageType(dataType), "typeCode mismatches dataType");
            return ((StorageType.Empty == typeCode) && dataType.IsGenericType && (dataType.GetGenericTypeDefinition() == typeof(System.Nullable<>)));
        }

3. Example

Project: referencesource
Source File: DataStorage.cs
View license
public static DataStorage CreateStorage(DataColumn column, Type dataType, StorageType typeCode) {
  /n ..... /n //View Source file for more details /n }

4. Example

Project: referencesource
Source File: DataStorage.cs
View license
internal static void ImplementsInterfaces(
                                    StorageType typeCode,/n ..... /n //View Source file for more details /n }