E.g, I've got a member function like this:
void f(List<int> listInt)...
Can I specify a default value for this listInt? Seems I cannot directly give it a "new" value as compiler requires a compile time constant for default values.
How to achieve that?
Thanks a lot.
Note I'm using Vs2017 and dotnet core 2.0, while this thread [C#-How to use empty List as optional parameter] is too old and the solution no longer works.