Foo has a static variable called Instance.
This static variable is intialized before Main is executed, which causes the constructor Foo() to be called
1
solved why the program doesn’t begin with main method
Foo has a static variable called Instance.
This static variable is intialized before Main is executed, which causes the constructor Foo() to be called
1
solved why the program doesn’t begin with main method