public static void Main()
Console.WriteLine("Hello World");
public record SimpleRecord(string PropA, string PropB);
public SimpleClass(string propA, string propB, string propC)
public string PropA { get; set; }
public string PropB { get; set; }
public string PropC { get; set; }
private readonly IMapper mapper;
var config = new MapperConfiguration(mapperConfig =>
mapperConfig.CreateMap<SimpleClass, SimpleRecord>().ConstructUsing(src => new SimpleRecord(src.PropA, "newValPropB"));
mapper = config.CreateMapper();
public SimpleRecord MapToRecord(SimpleClass input)
return mapper.Map<SimpleRecord>(input);