I could use a bit of relection help. I am passing an object into the constructor of another object. I need to loop through the parameter\'s properties and set the new objects pr
Something like this I think
Type target = typeof(DisabilityPaymentAddEntity); foreach(PropertyInfo pi in display.GetType().GetProperties()) { PropertyInfo targetProp = target.GetProperty(pi.Name); if(targetProp!=null) { targetProp.SetValue(this, pi.GetValue(display, null), null); } }