C# Using Reflection to copy base class properties
- by David Liddle
I would like to update all properties from MyObject to another using Reflection. The problem I am coming into is that the particular object is inherited from a base class and those base class property values are not updated.
The below code copies over top level property values.
public void Update(MyObject o)
{
MyObject copyObject = ...
…