Argument order is not necessary
suggest changeYou 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
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents