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
If you're passing a value, however, things are different. You can force a value to be passed by reference. This allows you to pass an integer to a method, for example, and have the method modify the integer on your behalf.