I have a method like this:
public static void MyMethod(int a, String opt1 = null, byte[] opt2 = null)
{
//code
}
I want to call MyMeythod once using opt1, and once using opt2;
MyMethod(3,"param"); call worked but
MyMethod(3,new byte[]); doesn't compile
Is there a way to do this or should I pass opt1 explicitly null
MyMethod(a: 3, opt2: new byte[]);MyMethod(opt2: new byte[] { }, a: 3)