[NoMerge] React to StringValues#7520
Conversation
|
Is this an approved breaking change? |
|
It was my understanding that the breaking change in |
|
Currently Count == 0
Count == 1
Count == 2
This means the check if ((_value != null ? 1 : (_values?.Length ?? 0)) == 0)And the cast of a After dotnet/extensions#323 there is a single (internal) representation for each count Count == 0
Count == 1
Count == 2
There is a fast path for if (_value == null && _values == null)Obviously the inverse for And the cast of a Though, its easy enough to have it return |
5140832 to
98f1ac0
Compare
|
We were talking about a |
That should still be valid |
Might need these two changes also |
|
There were two e.g. the follow up change in |
a042b1b to
91ab796
Compare
|
Heads up, the original change was reverted. We'll reintroduce it more cautiously by doing full universe builds before merging. |
91ab796 to
7eaacc0
Compare
7eaacc0 to
69c5fe6
Compare
69c5fe6 to
10336ef
Compare
|
Can this be closed? |
|
Yes |
dotnet/extensions#323 made a subtle change that causes
string[] myArray = new StringValues(new string[0])to implicitly become null./cc @Tratcher @rynowak