I wonder if AutoMapper uses reflection in its Mapper.Map<>()
method, or if the use of reflection is limited to the Mapper.CreateMap<>()
method?
Neither, to be honest. When you call CreateMap, AutoMapper uses optimizers to build the code for getting/setting values on source/destination types. Currently, it uses a combination of Reflection.Emit and expression tree compilation. At Map time, it uses the optimized callbacks for interacting with types.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With