微软内部代码规范
of accountability, redress of orders and prohibitions. Strengthening the honesty and self-discipline o
{
using System;
using ;
……
}
文件最开头要带copyright 和 author的标签,如:
// <copyright file="" company="sinners">
// Copyright (C) 2009 sinners. All rights reserved
of accountability, redress of orders and prohibitions. Strengthening the honesty and self-discipline of leading cadres honesty in politics and education work, enhance leaders ability to resist
of accountability, redress of orders and prohibitions. Strengthening the honesty and self-discipline of leading cadres honesty in politics and education work, enhance leaders ability to resist
of accountability, redress of orders and prohibitions. Strengthening the honesty and self-discipline of leading cadres honesty in politics and education work, enhance leaders ability to resist
以下是官方给出的通用规则
请选择易读的标识符名称。例如,英文属性名称 HorizontalAlignment 比 AlignmentHorizontal 更具可读性。
可读性比简洁性更重要。属性名称 CanScrollHorizontally 比 ScrollableX(指 X 轴,但意义不明确)更好。
不要使用下划线、连字符或任何其他非字母数字字符。
不要使用匈牙利表示法。
避免使用与常用编程语言的关键字冲突的标识符。
请参考:-cn/library/
类型设计准则
成员设计准则
变量都应该为私有(private),通过公有属性访问,或者用自动生成的方式(Auto Create)
除非是必须覆盖父类的方法成员属性,否则用“this.”比“base.”更好
所有在本类中调用到已定义的方法成员属性,在前面加上“this.”
扩展性设计
异常设计准则
of accountability, redress of orders and prohibitions.
微软内部代码规范 来自淘豆网m.daumloan.com转载请标明出处.