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
source
TSourceThe source object.
destination
TDestinationThe destination object.
Returns
- TDestination
The destination object with mapped properties.
Type Parameters
TSource
The source type.
TDestination
The 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
source
TSourceThe source object.
Returns
- TDestination
A new instance of the destination type with mapped properties.
Type Parameters
TSource
The source type.
TDestination
The destination type.