public static void Main()
var a = new A() { Index = 1, Text = "Source", Ignored ="SourceIgnored", item= new Item() };
var b = new B() { Index = 2, Text = "Destination", Ignored = "DestIgnored" };
var config = new MapperConfiguration(cfg =>
var map = cfg.CreateMap<A, B>(MemberList.Source);
map.ForMember(dest => dest.Text, opt => opt.UseDestinationValue());
map.ForMember(dest => dest.Ignored, opt => opt.Ignore());
var mapper = config.CreateMapper();
public int Index { get; set; }
public string Text { get; set; }
public string Ignored { get; set; }
public Item item {get; set;}
public int Index { get; set; }
public string Text { get; set; }
public string Ignored { get; set; }
public string ItemString {get; set;}