C# Class BTDB.FieldHandler.DefaultTypeConvertorGenerator

Inheritance: ITypeConvertorGenerator
Show file Open project: Bobris/BTDB

Public Methods

Method Description
Convert2Bool ( int value ) : bool
Convert2Decimal ( double value ) : decimal
Convert2Decimal ( float value ) : decimal
Convert2Decimal ( int value ) : decimal
Convert2Decimal ( long value ) : decimal
Convert2Decimal ( uint value ) : decimal
Convert2Decimal ( ulong value ) : decimal
Convert2String ( bool value ) : string
Convert2String ( decimal value ) : string
Convert2String ( double value ) : string
Convert2String ( long value ) : string
Convert2String ( ulong value ) : string
DefaultTypeConvertorGenerator ( ) : System
GenerateConversion ( Type from, Type to ) : Action

Private Methods

Method Description
AddConversions ( IEnumerable fromList, Type to, Action generator ) : void
GenerateEnum2EnumConversion ( Type from, Type to ) : Action

Method Details

Convert2Bool() public static method

public static Convert2Bool ( int value ) : bool
value int
return bool

Convert2Decimal() public static method

public static Convert2Decimal ( double value ) : decimal
value double
return decimal

Convert2Decimal() public static method

public static Convert2Decimal ( float value ) : decimal
value float
return decimal

Convert2Decimal() public static method

public static Convert2Decimal ( int value ) : decimal
value int
return decimal

Convert2Decimal() public static method

public static Convert2Decimal ( long value ) : decimal
value long
return decimal

Convert2Decimal() public static method

public static Convert2Decimal ( uint value ) : decimal
value uint
return decimal

Convert2Decimal() public static method

public static Convert2Decimal ( ulong value ) : decimal
value ulong
return decimal

Convert2String() public static method

public static Convert2String ( bool value ) : string
value bool
return string

Convert2String() public static method

public static Convert2String ( decimal value ) : string
value decimal
return string

Convert2String() public static method

public static Convert2String ( double value ) : string
value double
return string

Convert2String() public static method

public static Convert2String ( long value ) : string
value long
return string

Convert2String() public static method

public static Convert2String ( ulong value ) : string
value ulong
return string

DefaultTypeConvertorGenerator() public method

public DefaultTypeConvertorGenerator ( ) : System
return System

GenerateConversion() public method

public GenerateConversion ( Type from, Type to ) : Action
from System.Type
to System.Type
return Action