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 use of constructor in c# with example?

423


Explain a MSIL ? Why is it appreciated by all developers?

579


What are the steps to make an assembly to public?

491


Explain the use of SN.exe

585


What is cosole application?

560






What are constants in c#?

552


What is response redirect in c#?

473


How long can a string be c#?

503


Can you store strings in arrays?

533


Is is possible to force garbage collector to run?

518


What is a verbatim string literal and why do we use it?

469


Explain nullable types in c#?

529


What is append in c#?

471


What's the implicit name of the parameter that gets passed into the set method/property of a class?

582


What is inheritance in csharp?

513