Right now I only map properties if the names are the same, the getters and setters are accessible, and the types are exactly the same. In other words, this won't map:
public class BaseType { }
public class SubType
: BaseType { }
[MapTo(typeof(Destination))]
public class Source
{
public SubType A { get; set; }
}
public class Destination
{
public BaseType A { get; set; }
}
Right now I only map properties if the names are the same, the getters and setters are accessible, and the types are exactly the same. In other words, this won't map:
Maybe I add this:
Essentially, state that yes, you'd let this happen. Or...I make this the default, and I reverse the requirement: