Write your own AutoMapper in C# #49
Replies: 3 comments 3 replies
-
|
Mapperly is performant alternative to AutoMapper which uses Source Generator. |
Beta Was this translation helpful? Give feedback.
-
|
Read this article https://medium.com/@samuilovas/c-mappers-which-one-is-the-fastest-17ac6889ce4f Reflection is the slowest of all |
Beta Was this translation helpful? Give feedback.
-
|
I'm sorry to tell all AutoMapper fans: save your time and stop using it. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Write your own AutoMapper in C#
Sometimes you have to map an object to another representation in C#. And you think: Why isn't C# duck-typing capable?
You might hear of libraries like AutoMapper that do the tedious work of mapping one object to another with the same structure. This blog post will give a super simple introduction to how those libraries are working internally.
In the end a bit of a subjective topic on whether or not I would use such libraries.
https://steven-giesel.com/blogPost/16bf84c2-1464-40ab-8ef6-58f225e21c15
Beta Was this translation helpful? Give feedback.
All reactions