C#: Method named parameters

Please see my other C# articles.

Improve readability when invoking method parameters

In this article, I’ll demonstrate how to explicitly invoke method parameters and optionally change the parameter order.

In the following overloaded method, I have two pameters.

When I invoke this method, I want to clarify which argument is sent to the multiplier verses the array of int values.

Now, I can specify the multiplier when invoking my method by preceding the argument with the name of the parameter.