What is the difference between “out” and “ref” parameters in C#?
Answer:
“out” parameter can be passed to a method and it need not be initialized where as “ref” parameter has to be initialized before it is used.
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Answer:
“out” parameter can be passed to a method and it need not be initialized where as “ref” parameter has to be initialized before it is used.
need an explanation for this answer? contact us directly to get an explanation for this answer