Conversion manager
More...
|
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...
|
|
Conversion manager
Definition at line 34 of file Manager.cs.
Utilities.DataTypes.Conversion.Manager.Manager |
( |
IEnumerable< IConverter > |
Converters | ) |
|
Constructor
- Parameters
-
Definition at line 40 of file Manager.cs.
static object Utilities.DataTypes.Conversion.Manager.To< T > |
( |
T |
Item, |
|
|
Type |
ResultType, |
|
|
object |
DefaultValue = null |
|
) |
| |
|
static |
Converts item from type T to R
- Template Parameters
-
- Parameters
-
Item | Incoming object |
ResultType | Result type |
DefaultValue | Default 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 > |
( |
T |
Item, |
|
|
R |
DefaultValue = default(R) |
|
) |
| |
|
static |
Converts item from type T to R
- Template Parameters
-
T | Incoming type |
R | Resulting type |
- Parameters
-
Item | Incoming object |
DefaultValue | Default 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: