.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Home >> Forum >> .NET Framework >> Post New QuestionBookmark and Share Subscribe to Forum

When to use Ref and Out keyword

Posted By: Ramesh     Posted Date: March 01, 2010    Points:2   Category :.NET Framework

I know what is ref and out. But I am confused when to use ref and when to use out key word in .net framework.

Please help me with answer.


Author: Syed Shakeer Hussain             
Posted Date: March 01, 2010     Points: 5   
Author: Ravindra             
Posted Date: March 03, 2010     Points: 5   

Out keyword must be used when u don't know the value of the parameter..
for ex: sum (a,b,out c) here it is third parameter

Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend