表格命名公约

编程入门 行业动态 更新时间:2024-10-28 08:26:08
本文介绍了表格命名公约的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

通常的做法是使用frm开始表单类的名称(例如, frmOneForm,frmAnotherForm)。 或者这通常被认为是过时的约定? 如果不是frm什么是常见的或推荐的做法? 谢谢。

解决方案

这是一个过时的惯例。 .NET中的类名应该以大写字母开头,并且应该有 没有缩写。 我不确定是否建议在表格名称中加上任何前缀 。 " Smithers" < A@B在留言中写道 新闻:%2 **************** @ TK2MSFTNGP02.phx.gbl ...

通常的做法是使用frm开始表单类的名称(例如, frmOneForm,frmAnotherForm)。 或者这通常被认为是过时的约定? 如果不是frm什么是常见或推荐的做法? 谢谢。

" Marina Levit [ MVP] QUOT; < so ***** @ nospamwrote in message news:eL ************** @ TK2MSFTNGP04.phx.gbl ...

这是一个过时的约定。

说谁...?

.NET中的类名应以大写字母开头,并且应该 不是缩写。

说谁......?

" Mark Rae" < ma ** @ markNOSPAMrae写信息 新闻:uJ ************** @ TK2MSFTNGP02.phx.gbl ... " Marina Levit [MVP]" < so ***** @ nospamwrote in message news:eL ************** @ TK2MSFTNGP04.phx.gbl ...

>这是一个过时的约定。

说谁......?

说明.NET命名约定。 msdn.microsoft/library/de...guidelines.asp

> .NET中的类名应以大写字母开头,并且应该没有缩写。

说谁......?

见上文。 命名约定对于公开的代码非常重要 对外界,显然他们是咨询,而不是监管。 但是当问到这个问题时,Marina的回答是正确的答复。 Pete

Is it common practise to begin the name of form classes with "frm" (e.g., frmOneForm, frmAnotherForm). Or is that generally considered an outdated convention? If not "frm" what is a common or recommended practise? Thanks.

解决方案

That is an outdated convention. Class names in .NET should begin with a capital letter, and there should be no abbreviations. I''m not sure if there is a recommended practice of having any sort of prefix in the name of a form. "Smithers" <A@Bwrote in message news:%2****************@TK2MSFTNGP02.phx.gbl...

Is it common practise to begin the name of form classes with "frm" (e.g., frmOneForm, frmAnotherForm). Or is that generally considered an outdated convention? If not "frm" what is a common or recommended practise? Thanks.

"Marina Levit [MVP]" <so*****@nospamwrote in message news:eL**************@TK2MSFTNGP04.phx.gbl...

That is an outdated convention.

Says who...?

Class names in .NET should begin with a capital letter, and there should be no abbreviations.

Says who...?

"Mark Rae" <ma**@markNOSPAMraewrote in message news:uJ**************@TK2MSFTNGP02.phx.gbl...

"Marina Levit [MVP]" <so*****@nospamwrote in message news:eL**************@TK2MSFTNGP04.phx.gbl...

>That is an outdated convention.

Says who...?

Says the .NET naming conventions. msdn.microsoft/library/de...guidelines.asp

>Class names in .NET should begin with a capital letter, and there shouldbe no abbreviations.

Says who...?

See above. The naming conventions are primarily important for code that will be exposed "to the outside world", and obviously they are advisory, not regulatory. But when the question is asked, Marina''s answer is the correct reply. Pete

更多推荐

表格命名公约

本文发布于:2023-06-10 18:30:07,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/616399.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:公约   表格

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!