forked from xiaoyaocz/biliuwp-lite
-
Notifications
You must be signed in to change notification settings - Fork 40
代码规范
ywmoyue edited this page Sep 8, 2023
·
1 revision
- 大驼峰
class TestType
{
}
- I大驼峰
interface ITestInterface
{
}
- T大驼峰
class Test<TObjectType>
{
}
- 大驼峰
public void TestMethod()
{
}
- 大驼峰
public int TestProperty { get; set; }
- 大驼峰
public event EventHandler TestEvent;
- 小驼峰
public void Test()
{
var testVar = 0;
}
- 小驼峰
public void Test()
{
const int testConstants = 0;
}
- 小驼峰
public void Test(int testParam)
{
}
- 大驼峰
class Test
{
public int TestField;
}
- m_小驼峰
class Test
{
private int m_testField;
}
- _小驼峰
class Test
{
private static int _testField;
}
- 全大写以下划线分词
class Test
{
public const int TEST_FIELD = 0;
}