Ejemplo n.º 1
0
        static void Main()
        {
            ClsMaths obj = new ClsMaths();

            Console.WriteLine(obj.Subtract(20, 10));

            Console.ReadLine();
        }
Ejemplo n.º 2
0
        static void Main1()
        {
            int i = 100, j = 200;

            j = i.Add(5);
            j.PrintInt();  //=>
            ExtensionMethodsClass.PrintInt(j);


            string s = "a";

            s.DoSomethingForTheBaseClass();
            i.DoSomethingForTheBaseClass();

            ClsMaths objMath = new ClsMaths();

            Console.WriteLine(objMath.Subtract(20, 10));


            Console.ReadLine();
        }