F
Flip
Maybe I'm reading too much, I'm sorry if this is a very newbie question.
I'm reading the OReilly's Programming C# book, and it talks about ref and
out, cool. I thought I understood you have out on the outgoing and ref on
the accepting method side. But now I'm reading a webpage from another
posting (http://www.yoda.arachsys.com/csharp/parameters.html), that has the
out (or ref) on the method call and on the method declaration. HUH? I
thought I understood it before, now I think I understand it better (from the
webpage), but there is still use use case of mixing the out and ref
together. Can anyone clear up this confusion? Thanks.
I'm reading the OReilly's Programming C# book, and it talks about ref and
out, cool. I thought I understood you have out on the outgoing and ref on
the accepting method side. But now I'm reading a webpage from another
posting (http://www.yoda.arachsys.com/csharp/parameters.html), that has the
out (or ref) on the method call and on the method declaration. HUH? I
thought I understood it before, now I think I understand it better (from the
webpage), but there is still use use case of mixing the out and ref
together. Can anyone clear up this confusion? Thanks.