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 void abc() { yyy y = new yyy(); y.PrintPage += new PrintPageEventHandler(pqr); y.Print(); }
public static void Main() { yyy a; int i = 10; a = new yyy(); a.abc(ref i); System.Console.WriteLine(i); }
public xxx() { ggg = new yyy(this); // "this" redlined by C# Express }
public void another() { obj = new yyy(); obj.Function1(); }