MapperAttribute
Marks an abstract class or an interface as a mapper.
Enabled conversions which Mapperly automatically implements.
By default all supported type conversions are enabled.
Eg. to disable all automatically implemented conversions:EnabledConversions = MappingConversionType.NoneEg. to disable ToString() method calls:EnabledConversions = MappingConversionType.All & ~MappingConversionType.ToStringMethod
Whether the case should be ignored for enum mappings.
The default enum mapping strategy.
Can be overwritten on specific enums via mapping method configurations.
Strategy on how to match mapping property names.
Specifies the behaviour in the case when the mapper tries to return null in a mapping method with a non-nullable return type.
If set to true an ArgumentNullException is thrown.
If set to false the mapper tries to return a default value.
For a String this is Empty,
for value types default
and for reference types new() if a parameterless constructor exists or else an ArgumentNullException is thrown.
Specifies the behaviour in the case when the mapper tries to set a non-nullable property to a null value.
If set to true an ArgumentNullException is thrown.
If set to false the property assignment is ignored.
Whether to always deep copy objects.
Eg. when the type Person[] should be mapped to the same type Person[],
with UseDeepCloning=true, the same array is reused.
With UseDeepCloning=false, the array and each person is cloned.
Enables the reference handling feature.
Disabled by default for performance reasons.
When enabled, an IReferenceHandler instance is passed through the mapping methods
to keep track of and reuse existing target object instances.
public MapperAttribute()