class a
{
public static int A;
static a()
{
A = b.B + 1;
}
}
class b
{
public static int B = a.A + 1;
static void Main(string[] args)
{
Console.WriteLine(a.A+"-------------"+b.B);
}
}
1-------------2
答案写对了,但还有点不清楚,哪位高人指点下
class a
{
public static int A;
static a()
{
A = b.B + 1;
}
}
class b
{
public static int B = a.A + 1;
static void Main(string[] args)
{
Console.WriteLine(a.A+"-------------"+b.B);
}
}
1-------------2
答案写对了,但还有点不清楚,哪位高人指点下