![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
异常处理
Jack_To_H
每一条值得去走的路,都没有捷径!
展开
-
关于WPF程序错误提示
常常遇到错误,程序就会自动关闭。如今提供一种方法,让程序出现错误的时候,不关闭程序。并提醒用户。方法如下:一、在程序的App.xaml文件的节点Application上,添加属性 DispatcherUnhandledException="App_OnDispatcherUnhandledException" 二、在App.xaml.cs文件中添加代码 private vo原创 2015-08-26 15:04:00 · 1849 阅读 · 0 评论 -
.NET基础--do-while
bool flag = true; do { try { int score = Convert.ToInt32(Console.ReadLine()); if (score >= 0 && score <=原创 2015-09-15 18:11:18 · 577 阅读 · 0 评论 -
.NET基础--异常处理
try { Console.WriteLine("请输入一个正整数"); int i = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("输入数据成功,你输入的值是{0}", i); }原创 2015-09-17 13:41:31 · 320 阅读 · 0 评论