静态构造函数
http://blog.sina.com.cn/s/blog_475482980101kki3.html
class Program
{
static void Main(string[] args)
{
Class1 o1 = new Class1();
Class1 o2 = new Class1();
}
}
class Class1
{
private static int count = 0;
static Class1()
{
count++;
}
public Class1()
{
count++;
}
}
请问,o1.Count的值是多少?( 3)
出处:http://cnblogs.com/daishuguang