C# Out Vs REF

Posted by Questpond under C# category on | Points: 350 | Views : 3861
In this video we will try to understand what is the difference between C# Ref and Out Keywords.

Get Questpond videos on discounted price from ITFunda.com.

Comments or Responses

Posted by: Sbakkathatla on: 10/28/2015
Only difference is that a variable you pass as an out parameter doesn't need to be initialised, and the method using the ref parameter has to set it to something.
Posted by: Rajeshatkiit on: 12/17/2015
ref need to be initialize before going inside the method call and out need to initialize before coming out from method definition.

Login to post response