Exemplo n.º 1
0
        static void Main(string[] args)
        {
            NumberManipulator n = new NumberManipulator();

            int a, b;

            n.getValues(out a, out b);

            Console.WriteLine("After method call, value of a: {0}", a);
            Console.WriteLine("After method call, value of b: {0}", b);
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            NumberManipulator n = new NumberManipulator();

            /* local variable definition */
            int a, b;

            /* calling a function to get the values */
            n.getValues(out a, out b);

            Console.WriteLine("After method call, value of a : {0}", a);
            Console.WriteLine("After method call, value of b : {0}", b);
        }