Esempio n. 1
0
 static void Main(string[] args)
 {
     yyy a = new yyy(); ;
     int i; // u can try giving int i=100 but is useless as that value is not passed into the method. Only variable goes into the method and gets changed its value and comes out. 
     a.abc(out i);
     System.Console.WriteLine(i);
 }
Esempio n. 2
0
    static void Main(string[] args)
    {
        yyy a = new yyy();;
        int i = 0;

        a.abc(ref i);
        System.Console.WriteLine(i);
    }
Esempio n. 3
0
    public static void Main()

    {
        yyy a;

        int i = 10;

        a = new yyy();

        a.abc(ref i);

        System.Console.WriteLine(i);
    }