I use a third party control which exports some data to different formats. The control has a property ExportSettings. But it is read-only.
I\'ve to manua
You can do it via Reflection.
Something like this:
Type exportSettingType = ctrl.ExportSettings.GetType();
foreach (PropertyInfo property in exportSettingType.GetProperties())
{
object value = property.GetValue(ctrl.ExportSettings, null);
property.SetValue(secondControl.ExportSettings, value, null);
}