Пример #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");
 }