表格命名公约 [英] Form Naming Convention
问题描述
通常的做法是使用frm开始表单类的名称(例如,
frmOneForm,frmAnotherForm)。
或者这通常被认为是过时的约定?
如果不是frm什么是常见的或推荐的做法?
谢谢。
这是一个过时的惯例。
.NET中的类名应该以大写字母开头,并且应该有
没有缩写。
我不确定是否建议在表格名称中加上任何前缀
。
" Smithers" < A@B.com在留言中写道
新闻:%2 **************** @ TK2MSFTNGP02.phx.gbl ...
通常的做法是使用frm开始表单类的名称(例如,
frmOneForm,frmAnotherForm)。
或者这通常被认为是过时的约定?
如果不是frm什么是常见或推荐的做法?
谢谢。
" Marina Levit [ MVP] QUOT; < so ***** @ nospam.comwrote in message
news:eL ************** @ TK2MSFTNGP04.phx.gbl ...
这是一个过时的约定。
说谁...?
.NET中的类名应以大写字母开头,并且应该
不是缩写。
说谁......?
" Mark Rae" < ma ** @ markNOSPAMrae.com写信息
新闻:uJ ************** @ TK2MSFTNGP02.phx.gbl ...
< blockquote class =post_quotes>
" Marina Levit [MVP]" < so ***** @ nospam.comwrote in message
news:eL ************** @ TK2MSFTNGP04.phx.gbl ...
>这是一个过时的约定。
说谁......?
说明.NET命名约定。
http://msdn.microsoft.com/library/de...guidelines.asp < br>
> .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@B.comwrote 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*****@nospam.comwrote 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**@markNOSPAMrae.comwrote in message
news:uJ**************@TK2MSFTNGP02.phx.gbl..."Marina Levit [MVP]" <so*****@nospam.comwrote in message
news:eL**************@TK2MSFTNGP04.phx.gbl...
>That is an outdated convention.
Says who...?Says the .NET naming conventions.
http://msdn.microsoft.com/library/de...guidelines.asp
>Class names in .NET should begin with a capital letter, and there should
be 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
这篇关于表格命名公约的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!