C# Ref vs Out parameter
In C# language you can pass parameters to function with Ref or Out keywords. Here is some simple example: Ref parameter needs to be initialized before passing to function call two-way – “in” and “out” – function can access initialized value of ref parameter, and can assign value to that parameter Out does not…