天使半只翼

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2013年6月5日

摘要: public class A { public int Property1 { get; set; } }static void Main(){ A aa = new A(); Type type = aa.GetType();//获取类型 System.Reflection.PropertyInfo propertyInfo = type.GetProperty("Property1"); propertyInfo.SetValue(aa, 5, null... 阅读全文
posted @ 2013-06-05 02:12 天使半只翼 阅读(19190) 评论(1) 推荐(1) 编辑