10 2014 档案

摘要:namespace CommonLibrary.SystemUtils{ /// /// 表示存储空间大小计量单位 /// public enum SizeUnitMode { /// /// 字节 /// ... 阅读全文
posted @ 2014-10-28 11:19 二哥(阿伟) 阅读(1689) 评论(0) 推荐(0)
摘要:原文链接:http://www.2cto.com/kf/201301/186760.html其实他们两个都是委托【代理】的简写形式。一、【action】指定那些只有输入参数,没有返回值的委托Delegate的代码:[csharp] public delegate void myDelegate(st... 阅读全文
posted @ 2014-10-27 18:13 二哥(阿伟) 阅读(181) 评论(0) 推荐(0)
摘要:1.判断一个字符串是否全是数字 /// /// 判断字符串是否全是数字 /// /// /// public static bool IsNumber(string str) { ... 阅读全文
posted @ 2014-10-21 10:23 二哥(阿伟) 阅读(279) 评论(0) 推荐(0)
摘要:1.相加运行int a = 10;int b = 5;a= a+b;b=a-b;a=a-b;2.异或运算int a = 10;int b = 5;a ^= b;b ^= a;a ^= b;3.直接赋值b = a + (a = b) * 0; 无溢出风险a = a + b - (b = a); 有溢出... 阅读全文
posted @ 2014-10-09 12:57 二哥(阿伟) 阅读(335) 评论(0) 推荐(0)