Example:
public int foo(int x, int optionalY = 1, int optionalZ = 2) { ... }
I'd like to call it like this:
int returnVal = foo(5,,8);
In other words, I want to provide x
and z
, but I want to use the default for Y
, optionalY = 1.
Visual Studio does not like the ,,
Please help.