摘要: public string testStatic() { string str = "test"; int hashcode0 = str.GetHashCode(); int hashcode1 = test(str); str += "oooo"; int hashcode2 = str.Get 阅读全文
posted @ 2016-02-17 17:52 Pello 阅读(180) 评论(0) 推荐(0) 编辑
摘要: public class A { public static int Y = 3; //@@@@过程一 /// <summary> /// 静态构造函数,一般在调用静态变量A.Y,这时Y=4 <==>(3+1),或者第一次调用构造方法 如 A a =new A();的时候会执行,且执行一次 /// 阅读全文
posted @ 2016-02-17 17:36 Pello 阅读(337) 评论(0) 推荐(0) 编辑