Craig's Utility Library  4.0 Beta
Utilities.DataTypes.Conversion.Manager Class Reference

Conversion manager More...

Public Member Functions

 Manager (IEnumerable< IConverter > Converters)
 Constructor More...
 
override string ToString ()
 Outputs information about the manager as a string More...
 

Static Public Member Functions

static R To< T, R > (T Item, R DefaultValue=default(R))
 Converts item from type T to R More...
 
static object To< T > (T Item, Type ResultType, object DefaultValue=null)
 Converts item from type T to R More...
 

Detailed Description

Conversion manager

Definition at line 34 of file Manager.cs.

Constructor & Destructor Documentation

Utilities.DataTypes.Conversion.Manager.Manager ( IEnumerable< IConverter Converters)

Constructor

Parameters
ConvertersThe converters.

Definition at line 40 of file Manager.cs.

Member Function Documentation

static object Utilities.DataTypes.Conversion.Manager.To< T > ( Item,
Type  ResultType,
object  DefaultValue = null 
)
static

Converts item from type T to R

Template Parameters
TIncoming type
Parameters
ItemIncoming object
ResultTypeResult type
DefaultValueDefault return value if the item is null or can not be converted
Returns
The value converted to the specified type

Definition at line 74 of file Manager.cs.

static R Utilities.DataTypes.Conversion.Manager.To< T, R > ( Item,
DefaultValue = default(R) 
)
static

Converts item from type T to R

Template Parameters
TIncoming type
RResulting type
Parameters
ItemIncoming object
DefaultValueDefault return value if the item is null or can not be converted
Returns
The value converted to the specified type

Definition at line 59 of file Manager.cs.

override string Utilities.DataTypes.Conversion.Manager.ToString ( )

Outputs information about the manager as a string

Returns
The string version of the manager

Definition at line 132 of file Manager.cs.


The documentation for this class was generated from the following file: