当前位置:网站首页>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
边栏推荐
- pytorch basic operations: classification tasks using neural networks
- mysql索引失效的常见9种原因详解
- Node installation and environment variable configuration
- Redis(十一) - 异步优化秒杀
- MarkDown Formula Instruction Manual
- HCIP BGP Comprehensive Experiment Establishing peers, route reflectors, federation, route announcement and aggregation
- The international top conference OSDI included Taobao system papers for the first time, and the device-cloud collaborative intelligence was recommended by the keynote speech of the conference
- 虚拟现实房产展示系统提前预见未来装修效果
- The installation of NPM, CNPM
- HCIP第十七天
猜你喜欢

What is the most important ability of a programmer?

Nacos installation configuration and single-machine deployment tutorial

BGP实验(路由反射器,联邦,路由优化)

Launch Space on-premises deployment (local) Beta!

Xgboost报错ValueError:无效的形状:标签(1650 2)

深度学习——CNN实现MNIST手写数字的识别

BGP+MPLS Comprehensive Experiment

人工神经网络

The installation of NPM, CNPM

BGP+MPLS综合实验
随机推荐
深入剖析成员变量和局部变量的初始化问题
selenium + robotframework的运行原理
What is the most important ability of a programmer?
反向解析dns服务器
BGP+MPLS Comprehensive Experiment
APT + Transform to realize multi module Application distributed Application life cycle
双重for循环案例(用js打印九九乘法表)
Tips for programmers to write PPT
MySQL索引常见面试题(2022版)
rhce作业
nodejs的安装和全局配置(超详细哦)
Leetcode parentheses matching problem -- 32. The longest parentheses effectively
聪明人的游戏提高篇:第三章第二课:“桐桐数”(number)
Nacos database configuration
MySQL高阶---存储引擎、索引、锁
使用jOOQ 3.14合成外键在视图上写隐式连接
Node installation and configuration (node-v12.20.2-x64 ) and introduction to node version switching
物联网如何改变城市运行效率
BGP+MPLS综合实验
点云旋转到参考坐标系方向(最小方向包围盒方法)