public static void Main()
Console.WriteLine("Hello World");
Mapper.CreateMap<Foo, Bar>().ConvertUsing<MyCustomConverter>();
var source = new Foo { Notes = "A note" };
var destination = new Bar { Notes = "B note" };
Mapper.Map<Foo, Bar>(source, destination);
Console.WriteLine(destination.Notes);
public string Notes { get; set; }
public string Notes { get; set; }
public class MyCustomConverter : ITypeConverter<Foo, Bar>
public Bar Convert(ResolutionContext context)
return Convert(context.SourceValue as Foo, context.DestinationValue as Bar);
private Bar Convert(Foo source, Bar destination)
destination.Notes = source.Notes + destination.Notes;