首页 | 本学科首页   官方微博 | 高级检索  
     

浅谈C#程序中的异常处理机制
引用本文:唐珺.浅谈C#程序中的异常处理机制[J].计算机安全,2010(12):63-65.
作者姓名:唐珺
作者单位:山东中医药高等专科学校,山东烟台264100
摘    要:程序设计中,异常是一个不可忽略的元素,因此,有效的异常处理是程序完善的重要标志。重点介绍了C#语言中的异常处理机制。主要包括异常的基础知识、异常处理机制、程序设计中的异常三个部分。异常基础知识部分,讲解了什么是异常,异常发生的情况及主要的异常类,使读者对程序异常有基本的认识。异常处理机制部分,从应用程序和理论两方面对C#语言中对异常的处理机制进行讲解,详细分析了三种异常处理语句。程序设计中的异常部分,通过一个简单的程序开发中的例子扩展异常机制在程序设计中的应用,拓宽软件开发人员的设计思路。

关 键 词:程序设计  C#  异常处理

The Mechanism of Handling Exception in C# Program
TANG Jun.The Mechanism of Handling Exception in C# Program[J].Network & Computer Security,2010(12):63-65.
Authors:TANG Jun
Affiliation:TANG Jun(Shandong College of Traditional Chinese Medicine,Yantai,Shandong 265200,China)
Abstract:In the program designing,an exception is the element that is not neglected,so the effective exception handling is the important sign which makes the program perfect.This article focuses on the exception handling mechanism on C# language.It mainly includes the three parts,the basic knowledge of exception,exception handling mechanism and the exception in programming.In the basic knowledge part of exception,it explains what is the exception,the condition exception occurred and the main exception class.It make reader have the basic understanding of exception.In the part of exception handling mechanism,it explains the exception handling mechanism of C# from the application and theoretical aspects,and analyses three exception handling statement in detail.In the part of program designing exception,it expands exception handling mechanism in the program designing application with a simple and developped example application to expand the thinking in the development of software design.
Keywords:Program designing  c#  exception handling
本文献已被 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号