News for hackers. Stuff that matters.
Re:Show HN: Mapperly – A .NET source generator for object to... by danbruc on Thursday January 12, 2023 @09:39AM (#34354106)
Even though AutoMapper of course uses reflection to construct mappings, executing mappings does not involve reflection if not necessary. AutoMapper builds expression trees, compiles them on first use, and uses the resulting function to perform the mapping. If your mapping involves things only accessible through reflection, then the compiled mapping function will of course still have to rely on reflection.

There are no comments on this comment yet.