Table of Contents

ToType Method

Definition

Namespace
Cuemon.Data
Assemblies
Cuemon.Data.dll
Source
src/Cuemon.Data/Extensions/DbTypeDecoratorExtensions.cs

ToType(IDecorator<DbType>)

Provides the equivalent Type of the underlying DbType enumeration value of the decorator.

public static Type ToType(this IDecorator<DbType> decorator)

Parameters

decorator IDecorator<DbType>

The IDecorator<T> to extend.

Returns

Type

The equivalent Type of the underlying DbType enumeration value of the decorator.

Exceptions

ArgumentNullException

decorator is null or its underlying value is null.

ArgumentOutOfRangeException

decorator underlying value is not valid.