c# add default parameter ot method code example
Example: optional arguments c#
public void ExampleMethod(int required,
string optionalstr = "default string",
int optionalint = 10)
public void ExampleMethod(int required,
string optionalstr = "default string",
int optionalint = 10)