If one passes an object to a method using the \'Ref\' keyword then what is the difference with passing it without the ref keyword?
Because both yield the same result, th
These examples illustrates the difference
methodA(ref object a) { a = new object(); } methodB(object a) { a = new object(); } object c = new object(); methodA(ref c); //now c points to an entire new object methodB(c); // does not change the value of c