How can I create map for classes which contains members with name mismatch?

Oct 15, 2015 at 10:01 AM
Edited Oct 15, 2015 at 10:01 AM
For example, for classes:
public class A
    {
        public int Field1 { get; set; }

        public string Field2 { get; set; }

        public string CustomNameOfA { get; set; }
    }

    public class B
    {
        public int Field1 { get; set; }

        public string Field2 { get; set; }

        public string CustomNameOfB { get; set; }
    }