how to add optional paramter on condition in object creation in c# code example
Example: optional arguments c#
public void ExampleMethod(int required,
string optionalstr = "default string",
int optionalint = 10)