C# methods and parameter modifiers

In .NET there are 4 different types of parameter modifiers, some used more than others, and each used for a specific purpose. None - This is when the parameter is not marked with any modifier. The value is passed by value, meaning that the parameter is a copy of the original. out - An output parameter must be assigned by the method being called. The value is passed by reference, meaning that the parameter is the original, so any changes in the method will effect the original value....

August 3, 2015 · 3 min · 627 words · Fahad