c# 如何通过反射 获取\设置属性值、
摘要:
//定义类 public class MyClass { public int Property1 { get; set; } } static void Main() { MyClass tmp_Class = new MyClass(); tmp_Class.Property1 = 2; Type type = tmp_Class.GetType(); //获取类型 System.Refle... 阅读全文
posted @ 2013-04-03 16:29 努力&快乐 阅读(74813) 评论(1) 推荐(5) 编辑