A coworker and i were debating today whether or not it is ever useful to make this sort of a function:
private void MyFunction(ref MyClass variable)
{
}
The only advantage i can see is that it would allow you to set the original pointer to the variable to null... outside of that there would be no difference if you omitted the ref, correct?
Can you think of any reason to ever pass a ref string to a function?