B
Bradley1234
Typically when passing by reference you point to the location of the
variable, and can modify the original
When passing by value, you include a disposable copy of the variable, but it
protects the original.
The "ref" keyword lets you write as if passing by value, but it does the
work of passing by refence for you?
The "out" keyword appears to do the same thing, reading the C# spec has not
shown me the main difference, is there a difference? or does the out keyword
just stomp on whatever the value was with a new value, then goes ahead?
variable, and can modify the original
When passing by value, you include a disposable copy of the variable, but it
protects the original.
The "ref" keyword lets you write as if passing by value, but it does the
work of passing by refence for you?
The "out" keyword appears to do the same thing, reading the C# spec has not
shown me the main difference, is there a difference? or does the out keyword
just stomp on whatever the value was with a new value, then goes ahead?