Method Map
Map<TSource, TDestination>(TSource, TDestination)
Maps the properties from the source object to the destination object.
TDestination Map<TSource, TDestination>(TSource source, TDestination destination)
Parameters
sourceTSourceThe source object.
destinationTDestinationThe destination object.
Returns
- TDestination
The destination object with mapped properties.
Type Parameters
TSourceThe source type.
TDestinationThe destination type.
Map<TSource, TDestination>(TSource)
Maps the properties from the source object to a new instance of the destination type.
TDestination Map<TSource, TDestination>(TSource source)
Parameters
sourceTSourceThe source object.
Returns
- TDestination
A new instance of the destination type with mapped properties.
Type Parameters
TSourceThe source type.
TDestinationThe destination type.