The optional arguments must appear after mandatory arguments. in option code example
Example: optional arguments c#
public void ExampleMethod(int required,
string optionalstr = "default string",
int optionalint = 10)