4

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.

Jason Slocomb
  • 3,030
  • 1
  • 23
  • 25
  • possible duplicate of http://stackoverflow.com/questions/2624823/copy-values-from-one-object-to-another – Restore the Data Dumps 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 Answers1

7

There's AutoMapper which I've used in many projects and would strongly recommend.

Darin Dimitrov
  • 1,023,142
  • 271
  • 3,287
  • 2,928