摘要: public void d1() throws ReflectiveOperationException{ Class cl=Class.forName("com.daben.dt.class1"); class1 c1=(class1) cl.newInstance(); Method mt... 阅读全文
posted @ 2015-04-05 14:46 徐本县 阅读(151) 评论(0) 推荐(0)
摘要: 1、获取和设置当前工作目录a) System.IO.Directory.GetCurrentDirectory() 说明:获取应用程序的当前工作目录的完全限定路径。该方法是对Win32 API的GetCurrentDirectory函数的一个封装。例如:'"C:\Documents and Sett... 阅读全文
posted @ 2015-04-05 13:12 徐本县 阅读(2312) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Text;using System.Reflection;namespace ConsoleApplication1{ class Program { st... 阅读全文
posted @ 2015-04-05 13:10 徐本县 阅读(145) 评论(0) 推荐(0)