当前位置:网站首页>C# Coding Conventions Handbook
C# Coding Conventions Handbook
2022-08-02 06:57:00 【Calm Nine】
C# Coding Standards Manual
Introduction
Purpose
Make it clear that the source program and test program written in C# conform to the same specification, so as to achieve consistency and unity, so as to facilitate the later maintenance and change of the program.
In the life cycle of a software, 80% of the cost is maintenance.Almost no software is maintained by the original developer throughout its entire life cycle;
coding standards can improve the readability of software and allow programmers to understand new code as quickly and thoroughly as possible.In order to enforce the specification, every software developer must consistently follow the coding specification;
The main reason for using the unified coding specification is to standardize the structure and coding style of the application so that it is easier to read and understand this code;
GoodThe coding conventions used in this document make the source code rigorous, readable, and meaningful, consistent with other language conventions, and as intuitive as possible.
Note: The coding standard is to increase the readability of the code, there is no so-called right or wrong, and you don't have to worry about whether it is right or wrong.
Term Definition
- Pascal nomenclature: Capitalize the first letter of an identifier and the first letter of each word that follows.Pascal case can be used for identifiers of three or more characters.For example: BackColor.
- Camel nomenclature: Identifiers are lowercase and each subsequent word is capitalized.For example: backColor.
- Capitalization: All letters in the identifier are capitalized.Use this convention only for identifiers consisting of two or fewer letters.For example: System.IO, System.Web.UI.
- The specification of the document is divided into three types: [mandatory] [recommended] [reference], indicating the level of specification that needs to be followed
- Hungarian nomenclature: Hungarian nomenclature is a type of
边栏推荐
- MySQL联合查询(多表查询)
- MySQL(3)
- MySql 5.7.38 download and installation tutorial, and realize the operation of MySql in Navicat
- Nodejs installation tutorial
- Important concepts of target detection - IOU, receptive field, hole convolution, mAP
- The advantages of making web3d dynamic product display
- DNS的解析流程
- APP special test: traffic test
- Xgboost报错 ValueError: Invalid shape: (1650, 2) for label
- zabbix auto-discovery and auto-registration
猜你喜欢
Deep learning - CNN realizes the recognition of MNIST handwritten digits
Toolbox App 1.25 New Features at a Glance | Version Update
pl/sql之神奇的嵌套与变量生命周期
The advantages of making web3d dynamic product display
The installation of NPM, CNPM
点云旋转到参考坐标系方向(最小方向包围盒方法)
Kingdee International: Lost in half a year and last year, how does the business model of frantically burning money continue
Nodejs installation tutorial
zabbix邮件报警和微信报警
Launch Space on-premises deployment (local) Beta!
随机推荐
推出 Space On-Premises (本地部署版) Beta 版!
MySQL驱动jar包的下载--保姆教程
mysql高阶语句(一)
A detailed introduction to the deployment and usage of the Nacos registry
MarkDown公式指导手册
MySQL 23道经典面试吊打面试官
Important concepts of target detection - IOU, receptive field, hole convolution, mAP
Nodejs installation tutorial
HCIP第十七天
Nacos注册中心的部署与用法详细介绍
Nacos数据库配置
MySQL - 多表查询与案例详解
leetcode-338.比特位计数
selenium + robotframework的运行原理
MySQL高级语句(一)
Leading the demand and justifying the HR value - the successful launch of the "Human Resource Leading Model HRLM"
MySQL (3)
MySQL high-level statements (1)
node安装及环境配置
BGP实验(路由反射器,联邦,路由优化)