Skip to content

Override equality comparision for record struct #7018

Answered by yaakov-h
FLAMESpl asked this question in Q&A
Discussion options

You must be logged in to vote

Take the ? out of public bool Equals(Record? other). Since this is a record struct, Record? is Nullable<Record> so the method does not have the correct signature to be the correct Equals(Record) method.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Joe4evr
Comment options

@FLAMESpl
Comment options

@yaakov-h
Comment options

Answer selected by FLAMESpl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants