Interface IConverter<S, T>
A converter converts from a source object of type S to a target object of type T.
public interface IConverter<in S, out T>
Type Parameters
S
type of the source object
T
type of the target object
Methods
Convert(S)
Convert the source object of type S to a target object of type T.
T Convert(S source)
Parameters
source
Sthe source object to convert; can not be null
Returns
- T
the converted object which must be type T