当前位置:网站首页>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 5.7.38 download and installation tutorial, and realize the operation of MySql in Navicat
- mysql高阶语句(一)
- 虚拟现实房产展示系统提前预见未来装修效果
- 家用 NAS 服务器(4)| MergerFS和SnapRaid数据定时备份
- Analysis of port 9848 error at startup of Nacos client (non-version upgrade problem)
- An advanced method for solving palindromes
- 有人开源全凭“为爱发电”,有人却用开源“搞到了钱”
- 点云旋转到参考坐标系方向(最小方向包围盒方法)
- MarkDown Formula Instruction Manual
猜你喜欢
zabbix自动发现和自动注册
nodejs的安装和全局配置(超详细哦)
Leading the demand and justifying the HR value - the successful launch of the "Human Resource Leading Model HRLM"
Technology empowers Lhasa's "lungs", Huawei helps Lalu Wetland Smart Management to protect lucid waters and lush mountains
深度学习——CNN实现MNIST手写数字的识别
MySql COUNT statistics function explanation
MarkDown公式指导手册
人工神经网络
引领需求 为HR价值正名——“人力资源领先模型HRLM”成功首发
制作web3d动态产品展示的优点
随机推荐
APP special test: traffic test
Launch Space on-premises deployment (local) Beta!
MySQL 23道经典面试吊打面试官
虚拟现实房产展示系统提前预见未来装修效果
Different ways of shell scripting
pytorch常用函数
MySQL高级学习笔记
NPM 安装指定版本包的方法及版本号查看
rhce作业
MySQL Advanced Study Notes
BGP+MPLS综合实验
MySQL联合查询(多表查询)
Analysis of the source code of the JS UI framework of Hongmeng system
股价屡创新低 地产SaaS巨头陷入困境 明源云该如何转型自救?
MySQL database video tutorial from beginner to proficient
BGP experiment (route reflector, federation, route optimization)
Guarantee WIFI security in home and enterprise-with AC and AP networking experiment
node安装及环境变量配置
BGP实验(路由反射器,联邦,路由优化)
深度学习——CNN实现MNIST手写数字的识别