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); }
static void Main(string[] args) { yyy a = new yyy();; int i = 0; a.abc(ref i); System.Console.WriteLine(i); }
public static void Main() { yyy a; int i = 10; a = new yyy(); a.abc(ref i); System.Console.WriteLine(i); }