当前位置:网站首页>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
边栏推荐
- Node installation and environment variable configuration
- Home NAS server (4) | MergerFS and SnapRaid data backup
- 人工神经网络
- 家用 NAS 服务器(4)| MergerFS和SnapRaid数据定时备份
- Nacos installation configuration and single-machine deployment tutorial
- zabbix email alarm and WeChat alarm
- Tips for programmers to write PPT
- Difference between npm and yarn
- MySQL(3)
- Nacos安装详细过程
猜你喜欢

虚拟现实房产展示系统提前预见未来装修效果

Ant three sides: MQ message loss, duplication, backlog problem, what are the solutions?

MySQL Advanced SQL Statements

Shell 脚本不同玩法

代码编世界 科技创未来

Toolbox App 1.25 新功能一览 | 版本更新

node安装及环境配置

BGP+MPLS Comprehensive Experiment

MySQL驱动jar包的下载--保姆教程

Leetcode parentheses matching problem -- 32. The longest parentheses effectively
随机推荐
npm、cnpm的安装
Common functions of pytorch
Difference between npm and yarn
MySQL Advanced Study Notes
Practice on optimizing startup performance of VS Code
HCIP第十七天
双重for循环案例(用js打印九九乘法表)
Nacos注册中心的部署与用法详细介绍
Node installation and environment variable configuration
APP special test: traffic test
金蝶国际:半年亏掉去年一年,疯狂烧钱的商业模式如何持续
蚂蚁三面:MQ 消息丢失、重复、积压问题,有哪些解决方案?
MySQL高阶---存储引擎、索引、锁
pytorch常用函数
MySQL高级语句(一)
nodejs的安装和全局配置(超详细哦)
Leading the demand and justifying the HR value - the successful launch of the "Human Resource Leading Model HRLM"
一文搞懂C操作符
View source and switch mirrors in two ways: npm and nrm
Nacos database configuration