Class TypeConversion
Inheritance
TypeConversion
Syntax
public static class TypeConversion
Methods
Convert<TSource, TDestination>(TSource)
Declaration
public static TDestination Convert<TSource, TDestination>(TSource value)
Parameters
Type |
Name |
Description |
TSource |
value |
|
Returns
Type |
Description |
TDestination |
|
Type Parameters
Name |
Description |
TSource |
|
TDestination |
|
HasConverter<TSource, TDestination>()
Declaration
public static bool HasConverter<TSource, TDestination>()
Returns
Type Parameters
Name |
Description |
TSource |
|
TDestination |
|
Register<TSource, TDestination>(TypeConversion.Converter<TSource, TDestination>.ConvertDelegate)
Declaration
public static void Register<TSource, TDestination>(TypeConversion.Converter<TSource, TDestination>.ConvertDelegate converter)
Parameters
Type Parameters
Name |
Description |
TSource |
|
TDestination |
|
TryConvert<TSource, TDestination>(TSource, out TDestination)
Declaration
public static bool TryConvert<TSource, TDestination>(TSource source, out TDestination destination)
Parameters
Type |
Name |
Description |
TSource |
source |
|
TDestination |
destination |
|
Returns
Type Parameters
Name |
Description |
TSource |
|
TDestination |
|