using System;
class Foo {
static Foo() {
Console.WriteLine("Foo::static called");
}
class Bar : Foo {}
public class Program
{
public static void Main()
var foo = new Foo();
var bar = new Bar();