From cffbbd0e98c8c8ef393e3af4342c5de079eb5e49 Mon Sep 17 00:00:00 2001 From: Bartosz Klonowski Date: Sat, 29 Nov 2025 17:59:12 +0100 Subject: [PATCH 1/2] Link operators == and != overloading to the records page --- docs/csharp/language-reference/builtin-types/record.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/csharp/language-reference/builtin-types/record.md b/docs/csharp/language-reference/builtin-types/record.md index 35a98a1ab5c02..2216e9375bcf5 100644 --- a/docs/csharp/language-reference/builtin-types/record.md +++ b/docs/csharp/language-reference/builtin-types/record.md @@ -124,7 +124,7 @@ To implement value equality, the compiler synthesizes several methods, including * An override of . This method can be declared explicitly. -* Overrides of operators `==` and `!=`. It's an error if the operators are declared explicitly. +* Overrides of [operator `==`](../operators/equality-operators#equality-operator-) and [operator `!=`](../operators/equality-operators#inequality-operator-). It's an error if the operators are declared explicitly. * If the record type is derived from a base record type, `protected override Type EqualityContract { get; };`. This property can be declared explicitly. For more information, see [Equality in inheritance hierarchies](#equality-in-inheritance-hierarchies). @@ -263,4 +263,5 @@ For more information about these features, see the following feature proposal no - [Design guidelines - Choosing between class and struct](../../../standard/design-guidelines/choosing-between-class-and-struct.md) - [Design guidelines - Struct design](../../../standard/design-guidelines/struct.md) - [The C# type system](../../fundamentals/types/index.md) +- [Operator overloading](../operators/operator-overloading.md) - [`with` expression](../operators/with-expression.md) From a1136edd684480824968215ab3d227b125d7e2dd Mon Sep 17 00:00:00 2001 From: Bartosz Klonowski Date: Sat, 29 Nov 2025 18:31:09 +0100 Subject: [PATCH 2/2] Include file extension in the links for equality operators --- docs/csharp/language-reference/builtin-types/record.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/csharp/language-reference/builtin-types/record.md b/docs/csharp/language-reference/builtin-types/record.md index 2216e9375bcf5..c5be9864c637e 100644 --- a/docs/csharp/language-reference/builtin-types/record.md +++ b/docs/csharp/language-reference/builtin-types/record.md @@ -124,7 +124,7 @@ To implement value equality, the compiler synthesizes several methods, including * An override of . This method can be declared explicitly. -* Overrides of [operator `==`](../operators/equality-operators#equality-operator-) and [operator `!=`](../operators/equality-operators#inequality-operator-). It's an error if the operators are declared explicitly. +* Overrides of [operator `==`](../operators/equality-operators.md#equality-operator-) and [operator `!=`](../operators/equality-operators.md#inequality-operator-). It's an error if the operators are declared explicitly. * If the record type is derived from a base record type, `protected override Type EqualityContract { get; };`. This property can be declared explicitly. For more information, see [Equality in inheritance hierarchies](#equality-in-inheritance-hierarchies).