static void Main(string[] args) { MyClass1 c1 = new MyClass1(); c1.Method1().Method2(); MyClass2 c2 = new MyClass2(); c2.Method1().Method2().Method3(); }