Пример #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
            Useful useful = new Useful();

            Console.WriteLine(useful.GetExtension(10));
        }
Пример #2
0
 public static int GetExtension(this Useful useful, int num)
 {
     return(num);
 }