Archive for May 2016
C#.NET ref and out parameters with example

ref stands for reference and out stands for output.
ref parameter variable should be initialized before we call the method. That value will be used a as reference value in the method.
out parameter variable initialization is not required but it should.