Table of Contents

Interface ISimpleConverterT<TypeInClassName, U>

Namespace
SunamoInterfaces.Interfaces
Assembly
SunamoInterfaces.dll

Generic interface for bidirectional type conversion.

public interface ISimpleConverterT<TypeInClassName, U>

Type Parameters

TypeInClassName

The target type used in the class name.

U

The source type to convert from/to.

Extension Methods

Methods

ConvertFrom(TypeInClassName)

Converts from target type to source type.

U ConvertFrom(TypeInClassName targetValue)

Parameters

targetValue TypeInClassName

The target value to convert.

Returns

U

The converted source value.

ConvertTo(U)

Converts from source type to target type.

TypeInClassName ConvertTo(U sourceValue)

Parameters

sourceValue U

The source value to convert.

Returns

TypeInClassName

The converted target value.