what is reference parameter?
what is out parameters?
what is difference these two?

Answer Posted / rahul

In short ,

ref parameters needs to be initialized and can be used as
input as well as for output where as the out parameters
needs not to be initialized as there will not be any use
even if u initialize and can only be used for the the ouput
whose value to passed into the function......

for those who dont like too much reading...... it may help

Is This Answer Correct ?    1 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the delegate in c#?

492


What is the use of thread join in c#?

495


What is the difference between yield and return?

460


I was trying to use an out int parameter in one of my functions. How should I declare the variable that I am passing to it?

572


Does c# support try-catch-finally blocks?

476






How to create events for a control? What is custom events? How to create it?

541


What is reference types in c#?

475


Is c# a strongly-typed language?

541


What do you mean by parsing and how to parse a date time string in c#?

521


What is transparent caching with aop ?

622


What is the use of table aliases?

488


What is difference between static and constant variable?

527


What is difference between dll and exe in c#?

474


What Is The Smallest Unit Of Execution In .net?

522


Define multicast delegate in c#?

512