日期:2014-05-18 浏览次数:21016 次
using System; class Class1 { public static int Count = 0; static Class1() { Count++; } public Class1() { Count++; } } public class B { public static void Main() { Class1 O1 = new Class1(); Class1 O2 = new Class1(); Console.WriteLine(Class1.Count); } }