C#编码规范之代码的增删改约定

  • C#编码规范,代码的增删改约定:
/*【增加】*/
#region add by Tome 2018-9-20
//原因:描述
int a = GetScale(obj, col);
#endregion

/*【删除】 删除的代码确实没存在的意义,可以考虑1年后直接从文件中移除掉。*/ 
#region delete by Tome 2018-9-20
//原因:描述
/*int a = GetScale(obj, col);*/
#endregion

/*【修改】 下面演示了支持多次修改的情况。最近一次改region在最外层,并且每个region分上中下三部分,‘上’是修改原因,‘中’是注释掉的旧代码,‘下’是新代码*/
#region update by Tome 2018-10-20
//原因:描述2
#region update by Tome 2018-9-20 
//原因:描述
/*int a = GetScale(obj,type, col);*/
/*int a = GetScale(obj, col);*/
#endregion
int a = GetScale(obj, groupId, col);

#endregion

猜你喜欢

转载自www.cnblogs.com/anjun-xy/p/10286489.html
今日推荐