摘要: 在日常项目开发中,异常抛出和捕获是再平常不过的事情。通过try-catch我们可以方便的捕获异常,同时通过查看异常堆栈我们能发现抛出异常代码的位置。 例如下面这段代码: 这段代码非常简单,运行后他抛出了如下异常: 没有问题,堆栈信息明确指出了抛出异常的位置,也正是除零异常发生的位置。 假如因为种种原 阅读全文
posted @ 2019-11-26 16:02 skydau 阅读(4003) 评论(4) 推荐(2) 编辑
摘要: 在程序运行入口调试 阅读全文
posted @ 2019-05-05 09:04 skydau 阅读(234) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;public partial class _Default : System.Web.UI.Page{ private CustomerSOList bgCustomerSOListEntity { get; set; } private CustomerSOList dbCustomerSOListEntity { g... 阅读全文
posted @ 2013-07-06 00:28 skydau 阅读(217) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Timers;namespace ConsoleApplication1{ class Program { static void Main(string[] args) { var time1 = "2010-5-26 8:10:00"; var time2 = "2013-4-11 15:49:00"; var t1 = Convert.ToDateTime(time1); var t2 = Convert.To... 阅读全文
posted @ 2013-04-11 16:09 skydau 阅读(189) 评论(0) 推荐(0) 编辑
摘要: export JAVA_HOME=/usr/java/jdk1.7.0_07/export JRE_HOME=/usr/java/jdk1.7.0_07/jreexport CLASSPATH=.:#CLASSPATH:$JAVA_HOME/lib:$JRE_HOME/libexport PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin 阅读全文
posted @ 2012-10-18 22:11 skydau 阅读(124) 评论(0) 推荐(0) 编辑
摘要: TFS命令tf:undo - 强制签入别人签出的文件 阅读全文
posted @ 2012-10-09 13:08 skydau 阅读(141) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/tuyile006/archive/2006/07/13/449884.aspx 阅读全文
posted @ 2012-09-01 14:46 skydau 阅读(107) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/lyj/archive/2008/03/25/1119671.html 阅读全文
posted @ 2012-08-31 11:39 skydau 阅读(144) 评论(0) 推荐(0) 编辑
摘要: DECLARE@ItemsXMLSET@Items='<bookstore><bookcategory="COOKING"><titlelang="en">EverydayItalian2</title><author>GiadaDeLaurentiis</author><year>2005</year><price>30.00</price></book><bookcategory="CHILDRE 阅读全文
posted @ 2012-08-18 22:20 skydau 阅读(144) 评论(0) 推荐(0) 编辑
摘要: DECLARE@ItemsXMLSET@Items='<bookstore><bookcategory="COOKING"><titlelang="en">EverydayItalian2</title><author>GiadaDeLaurentiis</author><year>2005</year><price>30.00</price></book><bookcategory="CHILDRE 阅读全文
posted @ 2012-08-18 21:57 skydau 阅读(147) 评论(0) 推荐(0) 编辑