Difference between the out and ref keyword in C#
To pass an argument by reference in C# , we use the keyword ref . There is also another keyword "out" which can also be used to pass an argument by reference .
Below is a sample code demonstrating the usage of the out and ref keyword.
class Employee
{
Read More → 