May 15, 2009

c# 命名规则

参考
http://www.irritatedvowel.com/Programming/Standards.aspx
http://msdn.microsoft.com/en-us/library/ms229042.aspx

类,函数: Pascal Case
例 DoSomething

公共变量,函数参数: Camel Case
例 xmlMode

私有变量: Camel Case,前面加下划线
例: _studentName

0 comments: