0

What is difference between ref and out keywords?

anybody help me clearly please

21st Mar 2017, 4:12 PM
D.vijaya kumar
D.vijaya kumar - avatar
1 Answer
0
ref must be initialized before passing it to function/ method. However, inside function it may or may not be changed. out need is not initialized before passing it to function. However, it must be assigned some value inside function.
21st Mar 2017, 4:18 PM
Satish Gawde