Home / Software / Tips and Tricks / How to copy properties between two objects using Reflection?

How to copy properties between two objects using Reflection?

Updated:  08/19/2014 12:08 PM
Author:  Shiju Mathews

Status:    Resolved.


Reflection provides objects (of type Type) that describe assemblies, modules and types. You can use reflection to dynamically create an instance of a type, bind the type to an existing object, or get the type from an existing object and invoke its methods or access its fields and properties.

The following code will explain how to copy properties between two objects using Reflection.