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 private in c#?

660


How much time will it take to learn unity?

672


What is transparent caching with aop ?

785


How do you create dlls in .NET

779


Different between method overriding and method overloading?

670


Explain concurrency with aop?

720


Can I call a virtual method from a constructor/destructor?

664


What is the difference between struct and class c#?

707


What is the purpose of abstract class in c#?

668


Expalin the way you implement inheritance by using VB.NET/C#?

732


You are designing a user control. You created new property called backgroundimage which is of type image. You wanted to disable storing this property in the user’s form. How to achieve this?

721


Explain types of comment in c# with examples

685


Is c# front end or back end?

682


What is meaning of type safety in c#?

641


What is the difference between convert and parse in c#?

651