-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Maintain left.Equals(right) order for equality for compat #21829
Conversation
|
I'm assuming |
jkotas
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
|
SortVersion is sealed as well, so it can stay as is as well. |
|
Version is sealed as well. |
2cf506f to
cc1cb5c
Compare
|
Backed out |
| public override int GetHashCode() => base.GetHashCode(); | ||
|
|
||
| // Force inline as the true/false ternary takes it above ALWAYS_INLINE size even though the asm ends up smaller | ||
| [MethodImpl(MethodImplOptions.AggressiveInlining)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@benaadams Did you intend to delete only the comment, not the associated attribute?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, as I think its inaccurrate now (saying its actually a very small method that's just misunderstood by the Jit)
Seen in dotnet/corefx#34375 (comment)
/cc @jkotas @stephentoub