Interface ISimpleConverterT<TypeInClassName, U>
- Namespace
- SunamoInterfaces.Interfaces
- Assembly
- SunamoInterfaces.dll
Generic interface for bidirectional type conversion.
public interface ISimpleConverterT<TypeInClassName, U>
Type Parameters
TypeInClassNameThe target type used in the class name.
UThe source type to convert from/to.
- Extension Methods
Methods
ConvertFrom(TypeInClassName)
Converts from target type to source type.
U ConvertFrom(TypeInClassName targetValue)
Parameters
targetValueTypeInClassNameThe target value to convert.
Returns
- U
The converted source value.
ConvertTo(U)
Converts from source type to target type.
TypeInClassName ConvertTo(U sourceValue)
Parameters
sourceValueUThe source value to convert.
Returns
- TypeInClassName
The converted target value.