Update codebase to use Array.Empty<T> - #4127
Conversation
manfred-brands
left a comment
There was a problem hiding this comment.
This is only a subset of the zero element array allocations.
There are many more.
You can find them with a regular expression: new [a-zA-Z_0-9]*\[0\]
|
@manfred-brands thanks! |
…for attribute parameter
manfred-brands
left a comment
There was a problem hiding this comment.
Technically the conversion are done correctly.
Looking at the code, two of them should actually be Enumerable.Empty<int>().
Please update those two please.
There was a problem hiding this comment.
LGTM. Thanks for the work @mjedrzejek 👍
I've updated the first message in this PR, so that it will close #4051

Update codebase to use Array.Empty
Fixes #4051