Structural Equality: Treat ImmutableArray<T> the same as Array #42
Labels
is:bug
Something isn't working
is:enhancement
New feature or request
is:feature
pri:normal
up for grabs
This issue is open to be worked on by anyone
Since
ImmutableArray<T>
is yet another array implementation ofIStructuralEquatable
that could be compared againstArray
, it must be treated like anArray
, not compared usingIStructuralEquatable
.There are several places in the codebase where we do this:
CollectionUtil
StructuralEqualityComparer
J2N/src/J2N/Collections/StructuralEqualityComparer.cs
Line 83 in b7f80ca
J2N/src/J2N/Collections/StructuralEqualityComparer.cs
Line 133 in b7f80ca
J2N/src/J2N/Collections/StructuralEqualityComparer.cs
Line 177 in b7f80ca
J2N/src/J2N/Collections/StructuralEqualityComparer.cs
Line 208 in b7f80ca
Unfortunately, we have some challenges to deal with, since if we don't know the generic closing type of
ImmutableArray<T>
, we will need to do some work to materialize it before we can compare it.The text was updated successfully, but these errors were encountered: