Optional parameters require default values, yet I can't seem to assign a default array to an optional array parameter. For example:
Optional ByVal myArray As Long() = Nothing ' This works
However
Optional ByVal myArray As Long() = New Long() {0, 1} ' This isn't accepted.
The IDE tells me that a "constant expression is required" in place of New Long() {0, 1}.
Is there a trick to assigning a default array of constants, or is it not allowed?