Simplistic Object Copying in .NET
Posted by: Rick Strahls WebLog,
on 04 Aug 2009 |
View original | Bookmarked: 0 time(s)
In many applications its necessary to copy data between objects. Especially these days where we often have entities and Data Transfer Objects (DTO) where data needs to be shuttled back and forth between two objects I find it handy to have a simple routine that performs at least rudimentary, shallow data copying for me without manually having to write data mapping code at least if the properties identically or nearly identically. A few days ago I had a lengthy discussion about this topic on Twitter...