对string作了一些扩展,包含string转化为int.string转化为double.string转化为bool.打印系统当前时间.但没有解决数据溢出的问题,请大神帮忙解决! //头文件 /*part of interface about string; *it follow the function simply ,no complex situation exist; *so it should be modify before you use it; *overflow problem…
好东西都需要人去整理.分类 注意:需要引用命名空间 SyntacticSugar 用法: /***扩展函数名细***/ //[IsInRange] int num = 100; //以前写法 if (num > 100 & num < 1000) { } //现在写法 if (num.IsInRange(100, 1000)) { } //datetime类型也支持 //[IsNullOrEmpty] object s = ""; //以前写法 if (s == n…