对象的属性赋值

            var property = condition.GetType().GetProperty("PropertyName");
            property.SetValue(condition, "value", null);

  

猜你喜欢

转载自www.cnblogs.com/lhlong/p/9855559.html