1 overview
1.1 Norm-setting principles
1 facilitate the communication and maintenance of the code.
2 does not affect the efficiency of coding, do not conflict with popular habits.
3 Make the code more beautiful, reading more convenient.
4 Make the logic of the code clearer and easier to understand.
1.2 Term definitions
1 Pascal case
Capitalize the first letter of the identifier and the first letter of each word that is attached later. You can use Pascal capitalization for identifiers of three or more characters. Cases
BackColor
2) Camel case
The first letter of the identifier is lowercase, and the first letter of each subsequent concatenated word is capitalized. For example:
BackColor
1.3 File naming organization
1.3.1 File naming
1 filename compliance with Pascal naming, no special case, extension lowercase.
2 use a uniform and universal file name extension: C # class. cs
1.3.2 File comments
1 Each file header must contain the following explanatory notes
/*----------------------------------------------------------------
Copyright (C) Company name
All rights reserved.
//
Filename:
File function Description:
//
//
To create an identity:
//
To modify an identity:
Modify Description:
//
To modify an identity:
Modify Description:
//----------------------------------------------------------------*/