method declaration with optional parameter in .net core 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)