Skip to content

Conversation

@BobLd
Copy link
Collaborator

@BobLd BobLd commented Sep 14, 2025

No description provided.

obj is FileHeaderOffset other && value == other.Value;

public override int GetHashCode() => value.GetHashCode();
public override int GetHashCode() => Value.GetHashCode();
Copy link
Member

Choose a reason for hiding this comment

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

Don't record structs provide these default implementations already?

Copy link

Choose a reason for hiding this comment

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

Yes, including the IEquatable implementation. See .NET Lab

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

They do, but with default implementation. It's seems to be more efficient for speed to provide it when possible. Ill provide the source of that shortly

Copy link
Collaborator Author

@BobLd BobLd Sep 16, 2025

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants