Repository navigation
v10.1.0-pre03
Pre-release
Pre-release
·
11 commits
to v10.1.0
since this release
Breaking changes ⚠️
- Setting
UseDestinationValueyou can use for all Properties of DestinationType , including the writable property
example:string Property {get; set;}; - Setting
Map()override theIgnore()setting, Excluding cases ExtraSource(Multiple sources) mapping
New features and improvements
- Setting
Map()improvements:
1.1) Added supported different types source in Mapping with condition cases;
Example:
TypeAdapterConfig<DiffPoco, DiffDto>.NewConfig()
.Map(dest => dest.Value, src => src.ValueInt, cond => cond.Checker == 1)
.Map(dest => dest.Value, src => src.ValueString, cond => cond.Checker == 2)
.Map(dest => dest.Value, src => src.ValueBool, cond => cond.Checker == 3)
.Map(dest => dest.Value, src => src.Checker);
1.2) The analysis of the source passed as a parameter has been improved to enable the use of Null propagation.
Full Changelog: v10.1.0-pre02...v10.1.0-pre03