Interface IMapper
Onbox Mapper can clone objects and map properties and lists
Assembly: Onbox.Abstractions.dll
Syntax
Methods
|
Improve this Doc
View Source
Clone<TSource>(TSource)
Clones an object (Maps to a new instance)
Declaration
TSource Clone<TSource>(TSource source)
where TSource : new()
Parameters
Type |
Name |
Description |
TSource |
source |
|
Returns
Type |
Description |
TSource |
The cloned object with all properties copied
|
Type Parameters
|
Improve this Doc
View Source
Clone<TSource>(Object)
Clones an object (Maps to a new instance)
Declaration
TSource Clone<TSource>(object source)
where TSource : new()
Parameters
Type |
Name |
Description |
System.Object |
source |
|
Returns
Type |
Description |
TSource |
The cloned object with all properties copied
|
Type Parameters
|
Improve this Doc
View Source
Map<TSorce, TTarget>(TSorce, TTarget)
Clones an object (Maps to a new instance)
Declaration
void Map<TSorce, TTarget>(TSorce source, TTarget target)
where TSorce : new()
where TTarget : new()
Parameters
Type |
Name |
Description |
TSorce |
source |
|
TTarget |
target |
|
Type Parameters
Name |
Description |
TSorce |
|
TTarget |
|