Showing posts with label Reflection. Show all posts
Showing posts with label Reflection. Show all posts

Wednesday, 12 January 2011

How to Copy and Object with Reflection

If you need to copy an object then one way of doing it is with reflection. This is useful if a new property is added to a class and you dont want to remember to update the copy function with the new field.