You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 22, 2026. It is now read-only.
public class D11
{
public object D;
}
public class D12
{
public object D;
}
[Test]
public void Dynamic_to_Dynamic()
{
var mapper = ObjectMapperManager
.DefaultInstance
.GetMapper<D11, D12>(
new DefaultMapConfig()
.DeepMap()
);
var det = new { D = 1 };
var result = mapper.Map(new D11() { D = det });
Assert.AreEqual(det.D, ((dynamic)result.D).D); //FAIL
}
Instead of deep copy of an object result.D contains empty System.Object.
Possible solution is to construct ExpandoObject and then deep copy all other fields.
Instead of deep copy of an object result.D contains empty System.Object.
Possible solution is to construct ExpandoObject and then deep copy all other fields.