/// /// xml序列化 /// /// /// /// public static string
SaveXmlFromObj(T obj) { try { if (obj == null) retu...
分类:
其他好文 时间:
2014-06-16 06:32:19
阅读次数:
375
try { HttpGet httpRequest = new
HttpGet(edtUrl.getText() .toString()); HttpClient httpclient = new
DefaultHttpClient(); HttpResponse res...
分类:
移动开发 时间:
2014-06-16 06:16:39
阅读次数:
333
最近看Vamei的Python文章,其中一篇讲异常处理的,原本看完没啥疑惑,或许是自己想的简单了。看到评论,一个园友的问题引起我的兴趣。他的问题是def func(x): try: return ++x finally: return x+1print fun...
分类:
编程语言 时间:
2014-06-15 06:47:20
阅读次数:
228
if (Request["name"] != null) { try { string FileName = MyCrypt.Decrypt(Request["name"]); //string FilePath = Server.MapPath(string.Format("UploadFile....
分类:
其他好文 时间:
2014-06-14 23:47:24
阅读次数:
352
//读文件
private void readBtn_Click(object sender, EventArgs e)
{
try
{
if (pathTxt.Text == "")
{
MessageBox.S...
public void mouseDown(MouseEvent e) { try{ //指定目标文件
RandomAccessFile F = new RandomAccess...
分类:
数据库 时间:
2014-06-12 16:02:13
阅读次数:
184
package cn.sevennight.test;import
java.security.MessageDigest;public class md5{ public static String MD5(String
text) { try { MessageDigest md = ...
分类:
编程语言 时间:
2014-06-12 11:11:00
阅读次数:
302
1.为什么要用finally先看一个没有finally的异常处理try-catch语句:假设count为要使用到的资源,并且用完要求释放此资源。那么我们可以把释放资源的语句放到try-catch后执行,当前的程序不管是在执行完try语句块还是catch语句块,都会顺序执行到下面释放资源的语句。int...
分类:
编程语言 时间:
2014-06-10 21:40:53
阅读次数:
349