static void Main() { Sample1 S1 = new Sample1(); Sample2 S2 = new Sample2(); S1.Method(); S2.Method(); }