public class test
{
int c = 0;
public static test my = new test(2);
public int X;
public test(int x)
{
X = x;
}
}
class Program
{
static void Main(string[] args)
{
test me = test.my;
Console.WriteLine(me.X.ToString () );
Console.ReadKey();
}
}
在内存中,静态变量什么时候调用的构造方法啊?为什么自己能调用自己?