Exemple #1
0
        //Main_4_3_1
        public static void Main_4_3_1()
        {
            int a = 10;
            Add(a);
            Console.WriteLine(a);

            ArgsByRef abf = new ArgsByRef();
            AddRef(abf);
            Console.WriteLine(abf.i);
        }
Exemple #2
0
        public static void Main_4_3_1()//Main_4_3_1
        {
            int a = 10;

            Add(a);
            Console.WriteLine(a);

            ArgsByRef abf = new ArgsByRef();

            AddRef(abf);
            Console.WriteLine(abf.i);
        }
Exemple #3
0
 private static void AddRef(ArgsByRef abf)
 {
     abf.i = 20;
     Console.WriteLine(abf.i);
 }
Exemple #4
0
 private static void AddRef(ArgsByRef abf)
 {
     abf.i = 20;
     Console.WriteLine(abf.i);
 }