public class CreateSelectionCommand
public string SelectionName { get; set; }
public string Name { get; set; }
public static void Main()
var config = new MapperConfiguration(cfg => {
cfg.CreateMap<Selection, CreateSelectionCommand>()
var mapper = config.CreateMapper();
var cmd = new CreateSelectionCommand {SelectionName = "selectionName"};
var sel = mapper.Map<Selection>(cmd);
Console.WriteLine($"CreateSelectionCommand.Name: '{cmd.SelectionName}'");
Console.WriteLine($"Selection.Name: '{sel.Name}'");