Skip to content
Discussion options

You must be logged in to vote

You can already accomplish this today. Just write a source generator that spits out an appropriate .Equals and GetHashCode based on whatever attributes you care about. The language or Roslyn doesn't need to do anything here as the extensibility point is already available.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@333fred
Comment options

Answer selected by CyrusNajmabadi
Comment options

You must be logged in to vote
2 replies
@Sergio0694
Comment options

@333fred
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
5 participants