下载此文档

微软内部代码规范.doc


文档分类:IT计算机 | 页数:约5页 举报非法文档有奖
1/5
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/5 下载此文档
文档列表 文档介绍
微软内部代码规范
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转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息
  • 页数5
  • 收藏数0 收藏
  • 顶次数0
  • 上传人快乐蚂 蚁
  • 文件大小2.06 MB
  • 时间2022-04-25
最近更新