Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
We all know the difference between passing value types byval and byref, if the
variable is passed byval any change to the variable value in the called function is not
reflected back in the callee because a copy of the variable is passed, whereas passing
it byref means that the changes will be reflected back because the same variable is
passed. What happens when a reference type is passed by byval or byref?
Lets take a look at the example code: