If I am passing an object to a method, why should I use the ref keyword? Isn\'t this the default behaviour anyway?
For example:
class Program { s
With ref you can write:
ref
static public void DoSomething(ref TestRef t) { t = new TestRef(); }
And t will be changed after the method has completed.