Dynamically adding properties to an Object from an existing static object in C#
问题 In my ASP .Net Web API Application while making the DB calls, some properties are needed to be added to the Model Class which already have some existing properties. I understand I can use ExpandoObject in this case and add properties at run time, but I want to know how first to inherit all the properties from an existing object and then add a few. Suppose for example, the object that's being passed to the method is ConstituentNameInput and is defined as public class ConstituentNameInput {