|
|
Output Parameters | out parameters in C# are reference parameters used only for output purposes. |
Output parameters are used for output from methods.
The method is supposed to assign values to output parameters. |
| A formal ref parameter serve as an alias - an alternative name - of the corresponding actual parameter.
The formal parameter must be assigned in the method, hereby facilitating output from the method. |
The DoAdd method adds three value parameters and passes the result back to the caller
via an out parameter. |
Read more about output parameters in the text book version of this material. |