I am using AutoMapper where it has:
.ForMember( dest => dest.id, opt => opt.MapFrom(src => src.id))
Using the far right expression src => src.id
, if I have a string variable with the property's name, how would I choose the property by it?
I tried this:
src => propertyName
Then had to laugh when the value was "id".