예제 #1
0
        static void Main(string[] args)
        {
            Geek g = new Geek();

            g.M1();
            g.M2();
            g.M3();
            g.M4();
            g.M5("M5");

            Console.ReadLine();
        }
예제 #2
0
 public static void M5(this Geek g, string str)
 {
     Console.WriteLine(str);
 }
예제 #3
0
 public static void M4(this Geek g)
 {
     Console.WriteLine("M4");
 }