Interface IConverter<S, T>
A converter converts from a source object of type S to a target object of type T.
Namespace: Steeltoe.Common.Converter
Assembly: Steeltoe.Common.Abstractions.dll
Syntax
public interface IConverter<in S, out T>
Type Parameters
Name | Description |
---|---|
S | type of the source object |
T | type of the target object |
Methods
| Edit this page View SourceConvert(S)
Convert the source object of type S to a target object of type T.
Declaration
T Convert(S source)
Parameters
Type | Name | Description |
---|---|---|
S | source | the source object to convert; can not be null |
Returns
Type | Description |
---|---|
T | the converted object which must be type T |