Mapper.Map<Foo, Bar>(
o,
new MyType{
IntProp = service.GetIntProp(o.someProp),
StrProp = IntProp == 1 ? "Hello" : "World"
},
someOptions => {}
)
Is there a way to just access the value of IntProp
without creating a variable to hold MyType
? I could just call the service again, but I am somehow concerned with performance.