06 2012 档案
摘要:HttpPostrequest=newHttpPost(url);//先封装一个JSON对象JSONObjectparam=newJSONObject();param.put("name","rarnu");param.put("password","123456");//绑定到请求EntryStringEntityse=newStringEntity(param.toString());request.setEntity(se);//发送请求HttpResponsehttpResponse=newDefaultH
阅读全文
摘要:usingSystem;usingSystem.Diagnostics;usingSystem.Reflection;namespaceMyTest{publicclassTestM{publicvoidTest(){StackFramefr=newStackFrame(1,true);MethodBasemb=fr.GetMethod();Console.WriteLine(mb.Name);Console.WriteLine(mb.DeclaringType.Assembly.GetName());}}} 另外,也可以使用 System.Reflection.Assembly.GetCal
阅读全文