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
Ref denotes whether the function can get its hands on the object itself, or only on its value.
Passing by reference is not bound to a language; it's a parameter binding strategy next to pass-by-value, pass by name, pass by need etc...
A sidenote: the class name TestRef
is a hideously bad choice in this context ;).