Skip to content

Link to articles on semantics for synthesized methods #49903

@BillWagner

Description

@BillWagner

Type of issue

Missing information

Description

This article doesn't help record authors know how to write custom versions of the synthesized methods (especially those related to value-based equality).

Other articles describe how to write operator ==, and operator !=, override Equals(object), and GetHashCode(). That guidance should be easy to find from this article.

Page URL

https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/record

Content source URL

https://github.com/dotnet/docs/blob/main/docs/csharp/language-reference/builtin-types/record.md

Document Version Independent Id

de1f383b-ef20-4776-57a8-04edae892166

Platform Id

c94d9d75-515e-5ecb-047f-9b46664c7454

Article author

@BillWagner

Metadata

  • ID: 20818c64-4ad8-fb15-5d79-e7f98614e9c4
  • PlatformId: c94d9d75-515e-5ecb-047f-9b46664c7454
  • Service: dotnet-csharp
  • Sub-service: lang-reference

Related Issues

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions