Parameter Modifier
|
Meaning in Life
|
(none)
|
If a parameter is not marked with a parameter modifier, it is assumed to be an input parameter passed by value.
|
out
|
The parameter is passed by reference. The called method must assign a value to each output parameter, or you will receive a compile error.
|
ref
|
The parameter is passed by reference. The called method may optionally reassign the ref parameter but is not required to.
|
params
|
This parameter modifier allows you to send in a varying number of parameters as a single parameter. A method can only have a single params modifier, and it must be the final parameter of the method.
|