What's the difference between the 'ref' and 'out' keywords?
What's the difference between the 'ref' and 'out' keywords?
What's the difference between the 'ref' and 'out' keywords?
Re: What's the difference between the 'ref' and 'out' keywords?
`ref` tells the compiler that the object is initialized before entering the function, while `out` tells the compiler that the object will be initialized inside the function.
So while `ref` is two-ways, `out` is out-only.
So while `ref` is two-ways, `out` is out-only.