检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[1]浙江理工大学信息电子学院,浙江杭州310008
出 处:《工业控制计算机》2011年第7期52-53,55,共3页Industrial Control Computer
摘 要:首先介绍了在Visual C#中的ToString()方法,然后主要介绍了它的两大应用:自定义格式化输出和数据录入容错处理。其中自定义格式化输出比较常用,可以输出我们需要的各种格式,在此只是简单的介绍总结;在容错处理中,指出了以往处理方法的一些弊端:画面混乱不稳定,不能给予正确清晰的错误提示;在此基础上提出了ToString()重写的方法,并通过实例说明了此方法的优越性:可以同时处理多种不同类型容错且错误提示清晰明了等。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.
关 键 词:ASP.NET ToString() 格式化输出 容错处理
分 类 号:TP312.2[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.7