通常的做法是使用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
更多推荐
表格命名公约
发布评论