浅谈C#程序中的异常处理机制  被引量:2

The Mechanism of Handling Exception in C# Program

在线阅读下载全文

作  者:唐珺[1] 

机构地区:[1]山东中医药高等专科学校,山东烟台264100

出  处:《计算机安全》2010年第12期63-65,共3页Network & Computer Security

摘  要:程序设计中,异常是一个不可忽略的元素,因此,有效的异常处理是程序完善的重要标志。重点介绍了C#语言中的异常处理机制。主要包括异常的基础知识、异常处理机制、程序设计中的异常三个部分。异常基础知识部分,讲解了什么是异常,异常发生的情况及主要的异常类,使读者对程序异常有基本的认识。异常处理机制部分,从应用程序和理论两方面对C#语言中对异常的处理机制进行讲解,详细分析了三种异常处理语句。程序设计中的异常部分,通过一个简单的程序开发中的例子扩展异常机制在程序设计中的应用,拓宽软件开发人员的设计思路。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.

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

分 类 号:TP312[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象