Back to Csharplang

Empty array for zero arguments passed to params parameter

proposals/csharp-6.0/empty-params-array.md

latest285 B
Original Source

Empty array for zero arguments passed to params parameter

We use Array<T>.Empty() to create a zero-element array to pass to a params method when no arguments correspond. The language spec requires a new array, so it is a language change. This is a placeholder for the specification.