In C# by default we pass the parameter by value also known as value parameter . But a parameter also can be passed by reference. To pass an argument with reference we need to use “ref” keyword. If any argument passed as reference then any change to the parameter in the called method is reflected in the calling method.
What is the default parameter type in C#?
In C# by default we pass the parameter by value also known as value parameter . But a parameter also can be passed by reference. To pass an argument with reference we need to use “ref” keyword. If any argument passed as reference then any change to the parameter in the called method is reflected in the calling method.