Essential C# Named Arguments  Suggest an edit

Argument order is not necessary

You can place named arguments in any order you want.

Sample Method:

public static string Sample(string left, string right)
{
     return string.Join("-",left,right);
}

Call Sample:

Console.WriteLine (Sample(left:"A",right:"B"));
Console.WriteLine (Sample(right:"A",left:"B"));

Results:

A-B
B-A

Table Of Contents
22 Enum
25 GUID
49 Named Arguments
107 Stream
108 Timers
  ↑ ↓ to navigate     ↵ to select     Esc to close