C # Programming Specification---

Source: Internet
Author: User
Tags lowercase

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:

//----------------------------------------------------------------*/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.