Related resources for Out Keywords
  • Ref Vs Out Keywords in C#5/25/2017 7:49:57 AM. This article explains the ref and out keywords with differences in C#.
  • Ref And Out Keywords In C#4/10/2016 11:54:29 AM. In this article, we will talk about the ref and out keywords in C#.
  • Understanding ref and out keywords - Language C#1/24/2015 6:24:05 PM. This is a very initial video tutorial showing about ref and out keywords. The ref keyword causes argument passed by reference. The effect is that any changes is made to the parameter in the method will be reflected in that variable when control passes back to the calling method. The out keyword also causes argument to be passed by reference. There is no need to initialize the out variable, as it requires in case of ref variable.Both ref and out are treated differently at runtime, but treated the same at compilation. Therefore, methods can’t be overloaded, if one method takes a ref keyword and the other takes an out argument.
  • Reference and Value Types as Function Parameters Using Ref/Out Keywords5/14/2014 11:03:34 AM. In this article, we will try to study the behavior of the ref and out keywords when we use them as function parameters.
  • Work with "out" and "ref" keywords in C#11/20/2011 12:06:15 AM. The out and ref keyword look quite similar in nature. Both parameters are used to return back some value to the caller of the function. But still there is a small but important difference between them. Both of the parameter type has been kept in the C# language for specific scenario.
C# Language Specification 5.0
This book provides a complete description of the C# language 5.0.
Download