What is the difference between ref & out parameters?

Answer Posted / satya

ref keyword is used while passing the parameters by reference.
out keyword is used while passing the parameters by out

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between method and function in c#?

445


What are methods c#?

484


Difference between debug.write and trace.write?

519


What is delegate in c#?

541


What is the use of regex in c#?

494






What do you mean by a windows process in regards to memory allocation?

509


What does addressof operator do in background ?

584


What standard types does c# use?

508


Can list contain duplicates c#?

485


What the different phase/steps of acquiring a proxy object in webservice?

467


What is scope c#?

446


How can we set the class to be inherited, but prevent the method from being over-ridden?

480


How do I simulate optional parameters to com calls?

505


What is difference between ilist and list in c#?

482


Are arraylist faster or arrays?

484