摘要:
1.try catch finally try中包含的代码通长包含需要清理资源的代码,或者从异常中恢复,或者会抛出异常的代码. Catch包含异常恢复的代码 finally包含资源清理的代码.保证会执行的代码 如果内部的一个catch没有捕获到异常,那么会向外层就是调用方法的那一层查找捕获的代码,总是先执行内部所有的finally语句,由内而外,最后执行Catch的语... 阅读全文
posted @ 2013-12-21 13:17
平常心队长
阅读(254)
评论(0)
推荐(0)
摘要:
摘自:http://www.cnblogs.com/douqiumiao/default.aspx?opt=msgValidation failed for one or more entities. See ‘EntityValidationErrors’解决方法Validation failedforone ormoreentities.See‘EntityValidationErrors’propertyformoredetails. Unfortunately there is no further information about关于如何查看 EntityValidationErr 阅读全文
posted @ 2013-12-21 08:54
平常心队长
阅读(31641)
评论(0)
推荐(18)
摘要:
mysql中的float精度问题(http://blog.sina.com.cn/s/blog_6dbaeb9b0100vm5r.html)要得到1位或2位精确小数的话,整数不能高于 32767即:f<32767.99因为 2E15=32768所以最多只能正确处理0~32767的整数,要得到3位 精确 小数的话,整数不能高于16383即:f< 16383 .999因为 2E14=16384要得到4位 精确 小数,整数不能高于2047即:f< 2047 .9999而 2E11=2048要得到5位 精确 小数,整数不能高于127即:f< 127 .99999而 2E7=12 阅读全文
posted @ 2013-12-21 08:52
平常心队长
阅读(309)
评论(0)
推荐(0)
摘要:
C# 如何编辑文件的摘要信息 ShellClass shClass = new ShellClass(); Folder dir = shClass.NameSpace(Path.GetDirectoryName(path)); FolderItem item = dir.ParseName(Path.GetFileName(path)); var title = dir.GetDetailsOf(item, 10);VS2010中出现无法嵌入互操作类型 阅读全文
posted @ 2013-12-21 08:52
平常心队长
阅读(456)
评论(0)
推荐(0)
浙公网安备 33010602011771号