批量给对象属性赋值

noztable.GetType().GetProperty("RDO").SetValue(noztable, Convert.ToDouble(tb_RDO.Text), null);

上面的RDO实际上可以用control名替代,这样可以实现批量赋值。

原文地址:https://www.cnblogs.com/swtool/p/3840130.html