Use the overload that takes the existing destination:
Mapper.Map<Source, Destination>(source, destination);
Yes, it returns the destination object, but that’s just for some other obscure scenarios. It’s the same object.
More Related Contents:
- AutoMapper vs ValueInjecter [closed]
- Difference between ObservableCollection and BindingList
- String Concatenation using ‘+’ operator
- Kill process tree programmatically in C#
- Is there a good way to convert between BitmapSource and Bitmap?
- How do I determine a mapped drive’s actual path?
- Get File Icon used by Shell
- How is performance affected by an unused using directive?
- How do I split a string by strings and include the delimiters using .NET?
- Model-View-Presenter in WinForms
- how to use XPath with XDocument?
- My C# application is returning 0xE0434352 to Windows Task Scheduler but it is not crashing
- DataGrid column width doesn’t auto-update
- Travel through pixels in BMP
- JSON Serializer object with internal properties
- memcpy function in c# [duplicate]
- Finding out if a type implements a generic interface
- convert datetime to date format dd/mm/yyyy
- .NET Core vs Mono
- Can I Override with derived types?
- Application_Error in global.asax not catching errors in WebAPI
- Validating file types by regular expression
- ASP.NET Web API and [Serializable] class
- trying to convert rgb from a .net Color to a string such as “red” or “blue”
- Why does “\n” give a new line on Windows?
- Which objects can I use in a finalizer method?
- how to handle spaces in file path if the folder contains the space?
- Can I reuse HttpWebRequest without disconnecting from the server?
- Parsing field name with a colon in JSON
- PostMessage WM_KEYDOWN send multiply keys?