Craig's Utility Library
4.0 Beta
|
Type converter base class More...
Public Member Functions | |
override bool | CanConvertFrom (System.ComponentModel.ITypeDescriptorContext context, Type sourceType) |
Can convert from More... | |
override bool | CanConvertTo (System.ComponentModel.ITypeDescriptorContext context, Type destinationType) |
Can convert to More... | |
override object | ConvertFrom (System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value) |
Convert from an object to a DbType More... | |
override object | ConvertTo (ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType) |
Converts the DbType object to another type More... | |
Protected Member Functions | |
TypeConverterBase () | |
Constructor More... | |
Properties | |
Type | AssociatedType [get] |
Associated type More... | |
IDictionary< Type, Func< object, object > > | ConvertFromTypes [get] |
Types it can convert from and mapped functions More... | |
IDictionary< Type, Func< object, object > > | ConvertToTypes [get] |
Types it can convert to and mapped functions More... | |
abstract TypeConverter | InternalConverter [get] |
Converter used internally if this can not convert the object More... | |
Properties inherited from Utilities.DataTypes.Conversion.Converters.Interfaces.IConverter | |
Type | AssociatedType [get] |
Type that the converter is associated with More... | |
Type converter base class
T | Converter type |
Definition at line 33 of file TypeConverterBase.cs.
|
protected |
Constructor
Definition at line 38 of file TypeConverterBase.cs.
override bool Utilities.DataTypes.Conversion.Converters.BaseClasses.TypeConverterBase< T >.CanConvertFrom | ( | System.ComponentModel.ITypeDescriptorContext | context, |
Type | sourceType | ||
) |
Can convert from
context | Context object |
sourceType | Source type |
Definition at line 71 of file TypeConverterBase.cs.
override bool Utilities.DataTypes.Conversion.Converters.BaseClasses.TypeConverterBase< T >.CanConvertTo | ( | System.ComponentModel.ITypeDescriptorContext | context, |
Type | destinationType | ||
) |
Can convert to
context | Context object |
destinationType | Destination type |
Definition at line 82 of file TypeConverterBase.cs.
override object Utilities.DataTypes.Conversion.Converters.BaseClasses.TypeConverterBase< T >.ConvertFrom | ( | System.ComponentModel.ITypeDescriptorContext | context, |
System.Globalization.CultureInfo | culture, | ||
object | value | ||
) |
Convert from an object to a DbType
context | Context object |
culture | Culture info |
value | Value |
Definition at line 94 of file TypeConverterBase.cs.
override object Utilities.DataTypes.Conversion.Converters.BaseClasses.TypeConverterBase< T >.ConvertTo | ( | ITypeDescriptorContext | context, |
System.Globalization.CultureInfo | culture, | ||
object | value, | ||
Type | destinationType | ||
) |
Converts the DbType object to another type
context | Context type |
culture | Culture info |
value | |
destinationType |
Definition at line 112 of file TypeConverterBase.cs.
|
get |
Associated type
Definition at line 48 of file TypeConverterBase.cs.
|
getprotected |
Types it can convert from and mapped functions
Definition at line 53 of file TypeConverterBase.cs.
|
getprotected |
Types it can convert to and mapped functions
Definition at line 58 of file TypeConverterBase.cs.
|
getprotected |
Converter used internally if this can not convert the object
Definition at line 63 of file TypeConverterBase.cs.