Open j0nimost opened 1 month ago
Currently, we cannot use conditional access expressions while declaring mappings. For example;
TypeAdapterConfig<ItemA, ItemB>.NewConfig() .Map(dest => dest.Name, src => src.ItemAChild?.Name);
The above example would fail with an error, however, conditional access is very common when mapping values. This is a needed feature.
Currently, we cannot use conditional access expressions while declaring mappings. For example;
The above example would fail with an error, however, conditional access is very common when mapping values. This is a needed feature.