Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Maintain left.Equals(right) order for equality for compat #21829

Merged
merged 1 commit into from
Jan 6, 2019

Conversation

benaadams
Copy link
Member

@benaadams benaadams commented Jan 6, 2019

@benaadams
Copy link
Member Author

I'm assuming Delegate and MulticastDelegate don't need changing as they can't be inherited directly?

Copy link
Member

@jkotas jkotas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@jkotas
Copy link
Member

jkotas commented Jan 6, 2019

SortVersion is sealed as well, so it can stay as is as well.

@jkotas
Copy link
Member

jkotas commented Jan 6, 2019

Version is sealed as well.

@benaadams
Copy link
Member Author

Backed out Version and SortVersion

@jkotas jkotas merged commit dda6df6 into dotnet:master Jan 6, 2019
@@ -22,7 +22,6 @@ public abstract partial class ConstructorInfo : MethodBase
public override bool Equals(object obj) => base.Equals(obj);
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)]
Copy link

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?

Copy link
Member Author

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)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants