ASP.NET中的ToString()方法重写 |
| |
引用本文: | 翟田田,张云华. ASP.NET中的ToString()方法重写[J]. 工业控制计算机, 2011, 24(7): 52-53,55 |
| |
作者姓名: | 翟田田 张云华 |
| |
作者单位: | 浙江理工大学信息电子学院,浙江杭州,310008 |
| |
摘 要: | 首先介绍了在Visual C#中的ToString()方法,然后主要介绍了它的两大应用:自定义格式化输出和数据录入容错处理.其中自定义格式化输出比较常用,可以输出我们需要的各种格式,在此只是简单的介绍总结;在容错处理中,指出了以往处理方法的一些弊端:画面混乱不稳定,不能给予正确清晰的错误提示;在此基础上提出了ToStr...
|
关 键 词: | ASP.NET ToString() 格式化输出 容错处理 |
Override Method of ToString() in ASP.NET |
| |
Abstract: | Firstly introduces the method of ToString() in Visual C#,then presents two major applications of it:self-defined formatting the output and Fault-tolerant of data entry.The first one is commonly used,it can output a variety of formats that want,here only gives a brief summary of it.At the second,this paper points out some abuses of the previous approaches:the screen is chaos and instability,it can not give error prompts clearly and correctly;then on this basis puts forward override the method of ToString() and shows the superiority of this method by an example:it can deal with many different types of fault-tolerant at the same time and give error prompts clearly. |
| |
Keywords: | ASP.NET ToString() formatting the output fault-tolerant |
本文献已被 CNKI 维普 万方数据 等数据库收录! |
|