哪吒机器人提醒:

提醒:不会说也不想说可还是说了
【标题】C#反射实例——获取及设置对象属性,运行对象方法
【摘要】c#语言: c#反射实例——获取及设置对象属性,运行对象方法01stringfieldname;//属性名02stringfieldvalue;//属性值0304objectuservalue = new object();0506euserinfo user =toolbase.userinfo.getinfo(custid);//对象实例化07type t =user.gettype();08type protype = t.getproperty(fieldname).getvalue(user,null).gettype();04-15 13:53)