J
Jon Davis
I've been using the ref keyword as a way of passing strings to methods as
references so that in the method I don't have to manually return the
modified "version" of what was passed into the method, I just have to assign
a new value to the ref'd argument. However, I've learned that the 'out'
keyword seems to do something just like this.
I'm kind of confused; what's the practical difference between 'ref' and
'out' for my intents?
Thanks,
Jon
references so that in the method I don't have to manually return the
modified "version" of what was passed into the method, I just have to assign
a new value to the ref'd argument. However, I've learned that the 'out'
keyword seems to do something just like this.
I'm kind of confused; what's the practical difference between 'ref' and
'out' for my intents?
Thanks,
Jon