摘要:本例描述几个常用的异常处理,及可能出现的问题: finally的相关使用 嵌套异常 捕获多线程的异常[使用事件通知的方式,将异常包装到主线程中] using System; using System.Threading.Tasks;namespace ConsoleApp_HandleException{ class Program { static void Main...
阅读全文
弹指一挥间好好做事,学习待人 (大数据分析/.NET/JAVA)技术交流QQ:860280456; .NET/JAVA技术交流群:192028174 |
随笔分类 - 【编码规范】
摘要:本例描述几个常用的异常处理,及可能出现的问题: finally的相关使用 嵌套异常 捕获多线程的异常[使用事件通知的方式,将异常包装到主线程中] using System; using System.Threading.Tasks;namespace ConsoleApp_HandleException{ class Program { static void Main...
阅读全文
摘要:using System;using System.Collections.Generic;using System.ComponentModel; using System.Runtime.InteropServices; namespace ConsoleApp_DisposeResources{ class Program { static void Main(s...
阅读全文
摘要:internal class CleanCode { private CultureInfo m_CurrentCulture; private CultureInfo m_CurrentUICulture; private int m_Priority; private string m_Name; //提供有意义的命名 ...
阅读全文
摘要:class Person { /// /// 公有字段、属性 首字母大写 /// public string FirstName; public string LastName; public string Name { get { return strin...
阅读全文
|