emit mapper circular reference issues. I am trying to map AA to A. A has object of B, but B has object of A. This is circular reference issue. I am not sure how Emit mapper can handle this issue.
public class A
{
public A()
{
list = new List<B>();
}
List<B> list {get; set;}
}
public class B
{
public A object {get; set;}
}
public class AA
{
public AA()
{
list= new List<BB>();
}
public List<BB> list {get; set;}
}
public class BB
{
public AA object {get; set;}
}
objectified = new A();
ObjectMapperManager.DefaultInstance.Get Mapper<A, AA>().Map(objectified);
Need to map from A to AA. Now I got the stack overflow error. Any one know how to resolve this issue?