Created
November 27, 2016 23:07
-
-
Save andriybuday/0662ede130bf3445599d2b1c8a63b46a to your computer and use it in GitHub Desktop.
ObjectExtensions Map method to abstract AutoMapper Map method
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class ObjectExtensions | |
{ | |
public static T Map<T>(this object source) | |
{ | |
return AutoMapper.Mapper.Map<T>(source); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment