Sandy8606

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

2011年8月11日

摘要: 先来看一个类: public class ReflectDemoClass { public static void M(string s,out int i) { i = 1; Console.WriteLine("s={0},i={1}",s,i); } public static void M(string s, double i) { Console.WriteLine("s={0},i={1}", s, i); } }首先,利用反射获取此类的Type:Type T = Type.GetType("ReflectDemoClass&qu 阅读全文
posted @ 2011-08-11 15:33 Sandy8606 阅读(1088) 评论(0) 推荐(0) 编辑