Project Description
Source Code for blog posts and other code-related activities.



Simple CloneExtension class which gives you Clone<T>(this T source) extension method. Clone is performed using standard field and/or properties values assignments. Correct assignment code is created on runtime before extension is used for the first time for given time type T using Reflection and Expression Tree.

Related StackOverflow question: How can I clone a class with all the values that are already set in it?


Last edited Feb 19, 2014 at 5:09 PM by marcinjuraszek, version 12