摘要:
#if DEBUG,这个东东其实以前刚开始学习C#的时候就知道了,也知道怎么用,但就是没有使用过。随想,很多人估计也都没有用过吧(嘿,自我安慰下)。最近看MVVMLight的代码时看到#if SILVERLIGHT的东东,于是想起来#if debug来了,于是在代码中疯狂的使用:设置下用户名和密码,免得每次都输入#if DEBUG UserID = "abc@abc.com"; Password = "123456";#endif设置下登陆状态,免得每次都要登陆#if DEBUG IsLogin = true;#elif ......#endif输出异常 阅读全文
posted @ 2013-01-18 16:31
xust
阅读(180)
评论(0)
推荐(0)
摘要:
Is there any difference betweenSqlCommand.CommandTimeoutandSqlConnection.ConnectionTimeoutin .NET?Yes.CommandTimeoutis how long a single command can take to complete.ConnectionTimeoutis how long it can take to establish a connection to the server to start with.For instance, you may be executing rela 阅读全文
posted @ 2013-01-18 15:26
xust
阅读(431)
评论(0)
推荐(0)

浙公网安备 33010602011771号