posts - 102,comments - 0,views - 35459
03 2024 档案
把string转化为int类型,不成功则返回0
摘要:/// <summary> /// 将字符串数据转换为int数据,如果格式不对则返回0 /// </summary> /// <param name="str">需要转换的字符串</param> /// <returns></returns> public static int String2Int 阅读全文
posted @ 2024-03-14 14:49 阿霖找BUG 阅读(88) 评论(0) 推荐(0) 编辑
C#try捕捉不了NullReferenceException
摘要:用debug运行以下代码出现空指针错误 double[] EnergyScaleValue = new double[3]; try { EnergyScaleValue = null; } catch (NullReferenceException ee) { MessageBox.Show("请 阅读全文
posted @ 2024-03-14 14:47 阿霖找BUG 阅读(74) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示