Mapster.Tool does not properly handle situation when both UseDestinationValue() and AddDestinationTransform() is used and generates coalesce (??) on void collection copy method.
Example:
Declaration:
public class Src
{
public IList<string> ListWithGetOnly { get; } = new List<string>();
}
public class Dst
{
public List<string> ListWithGetOnly { get; } = new List<string>();
}
Mapster.Tool does not properly handle situation when both
UseDestinationValue()
andAddDestinationTransform()
is used and generates coalesce (??) on void collection copy method.Example: Declaration:
Mapper configuration:
What gets generated:
Sample project: MapsterBug-DestinationTransform.zip