CSharp · Console
using System;
static class C {
static C() {}
public static bool call5 = Program.F(true, "C.call5");
}
static class B {
static B() {}
public static bool call4 = Program.F(C.call5, "B.call4");
public static bool call2 = Program.F(A.call3, "B.call2");
}
static class A {
static A() {}
public static bool call3 = Program.F(B.call4, "A.call3");
public static bool call1 = Program.F(B.call2, "A.call1");
}
public class Program
{
public static void Main()
{
Console.WriteLine("A.call1 => " + A.call1); // False
}
public static bool F(bool b, string s)
{
Console.WriteLine(s);
return b;
}
}