When passing named arguments to a C# method along with fixed arguments, the named arguments must appear before the fixed arguments. code example
Example: optional arguments c#
public void ExampleMethod(int required,
string optionalstr = "default string",
int optionalint = 10)