I don't remember which blog I was reading, because it seemed academic at the time, but there was a library being discussed where you could take a two concrete classes and bind the properties together if the names matched. Think ASP.NET MVC model binding.
Asked
Active
Viewed 723 times
4
-
possible duplicate of http://stackoverflow.com/questions/2624823/copy-values-from-one-object-to-another – Jason Punyon Apr 14 '10 at 21:33
-
Thanks Jason, I think that question complements this one. Voting to leave it open as I was specifically looking for a library and this question has additional tags re: databinding. – Jason Slocomb Apr 15 '10 at 06:54
1 Answers
7
There's AutoMapper which I've used in many projects and would strongly recommend.
Darin Dimitrov
- 994,864
- 265
- 3,241
- 2,902