AutoMapper optimisation or an issue? #3619
-
Good evening Jimmy, thank you for great job on AutoMapper. Several statements from you blogpost:
Can you please clarify this article?
Can you please explain these ambiguity and if I'm missing something here. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I'm not sure what you mean here. It's the responsibility of the person creating the destination types. I can name destination members differently, nothing in C# enforces a convention.
I don't know what you're referring to as "Local" and "Profile" configurations, nor what this has to do with MVC DI.
That is a very specific scenario of wrapping custom extensions (resolvers, type converters) with try/catch. We don't do that anymore. We still handle nulls in dest.FooBarBaz = src?.Foo?.Bar?.Baz ?? default; |
Beta Was this translation helpful? Give feedback.
I'm not sure what you mean here. It's the responsibility of the person creating the destination types. I can name destination members differently, nothing in C# enforces a convention.
I don't know what you're referring to as "Local" and "Profile" configurations, nor what this has to do with MVC DI.