1.

What's The Difference Between The 'ref' And 'out' Keywords?

Answer»

An ARGUMENT passed as "REF" must be initialized before passing to the METHOD whereas "out" parameter needs not to be initialized before passing to a method, and it will be initialized inside the method.

An argument passed as "ref" must be initialized before passing to the method whereas "out" parameter needs not to be initialized before passing to a method, and it will be initialized inside the method.



Discussion

No Comment Found