命名函数约定 [英] Naming convention of functions
本文介绍了命名函数约定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
c#中函数的命名约定是什么?
解决方案
这里可以找到命名指南...
http://msdn.microsoft.com/library/de...guidelines.asp
-
Tim Wilson
..Net Compact Framework MVP
news:11 ******************** @ g44g2000cwa.googlegrou ps.com ...c#中函数的命名约定是什么?
感谢您的回复!
我是什么我实际上正在寻找一些支持写作获取/设置
函数驼峰案例?
例如getCustomer()但是我找不到,是吗?在哪里?
最诚挚的问候,
Niclas Colleen
Kannan.V [MCSD.net] skrev:
< blockquote class =post_quotes>你可以只是google获取函数的命名约定,或者Ms有一个很好的doc用于编写C#代码。
检查这个链接。
< a rel =nofollowhref =http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconnamingguidelines.asp\"target =_ blank> http: //msdn.microsoft.com/library/de...guidelines.asp
-
Kannan.V
主页: http://www.kannanv.com
博客: http://kannanv.blogspot.com
Web: http://www.DotnetLounge.net
任何一个从未犯过错误的人从未尝试过任何新的东西 - 爱因斯坦
"到******** @ hotmail.com"写道:
c#中函数的命名约定是什么?
<to********@hotmail.com>写道:感谢您的回复!
我真正想要的是一些支持写入get / set
函数的驼峰案例?
例如getCustomer()但是我找不到,是吗?在哪里?
编号。方法总是按.NET惯例进行Pascal。
-
Jon Skeet - < sk *** @ pobox.com>
http://www.pobox.com/~skeet
如果回复小组,请不要给我发邮件
What is the naming convention for functions in c#?
解决方案
The naming guidelines can be found here...
http://msdn.microsoft.com/library/de...guidelines.asp
--
Tim Wilson
..Net Compact Framework MVP
<to********@hotmail.com> wrote in message
news:11********************@g44g2000cwa.googlegrou ps.com...What is the naming convention for functions in c#?
Thanks for your responses!
What I''m actually looking for is some support for writing get/set
functions camel case?
e.g. getCustomer() but I won''t find that, will I? Anywhere?
Best Regards,
Niclas Colleen
Kannan.V [MCSD.net] skrev:
you could just google for the naming conventions for functions or Ms has a
veyr good doc for writing C# code.
check this link.
http://msdn.microsoft.com/library/de...guidelines.asp
--
Kannan.V
Home : http://www.kannanv.com
Blog : http://kannanv.blogspot.com
Web : http://www.DotnetLounge.net
"Any one who has never made a mistake has never tried anything new" - Einstein
"to********@hotmail.com" wrote:What is the naming convention for functions in c#?
<to********@hotmail.com> wrote:Thanks for your responses!
What I''m actually looking for is some support for writing get/set
functions camel case?
e.g. getCustomer() but I won''t find that, will I? Anywhere?
No. Methods are always Pascal-cased by .NET conventions.
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
这篇关于命名函数约定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文