|
|
Reference Parameters | Here we discuss ref parameters ala C#. This is analogous to var (variable parameters) known from Pascal.
|
Reference parameters can be used for both input to and output from methods |
| A formal ref parameter serve as an alias - an alternative name - of the corresponding actual parameter. |
A classical use of a reference parameter. The Swap method
exchanges the values of two variables. |
Read more about reference parameters in the text book version of this material. |