比较以下两段代码的注释:
//权威公司编号名称(顺序)//"澳门","金宝博","立博","威廉希尔","伟德","10BET","bet 365","SNAI"static List<Int32> AuthCompanyIdList = new List<int>(){ 247, 250, 251, 252, 253, 1, 469, 179};internal static List<Int32> AuthCompanyIdList = new List<int>(){ 247/*澳门*/, 250/*金宝博*/, 251/*立博*/, 252/*威廉希尔*/, 253/*伟德*/, 1/*10BET*/, 469/*bet 365*/, 179 /*SNAI*/ };显然,第二种注释效果更好,利于代码维护。
敲代码应该是件轻松的事情,也可以很优雅!
新闻热点
疑难解答