public void Method2() { ClassB cb = new ClassB(); cb.Test(); }
public void Method1(ClassB cb) { cb.Test(); }