Skip to content

Commit ef3dee1

Browse files
Link operators == and != overloading to the records page (#50226)
* Link operators == and != overloading to the records page * Include file extension in the links for equality operators
1 parent fc53059 commit ef3dee1

File tree

1 file changed

+2
-1
lines changed
  • docs/csharp/language-reference/builtin-types

1 file changed

+2
-1
lines changed

docs/csharp/language-reference/builtin-types/record.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ To implement value equality, the compiler synthesizes several methods, including
124124

125125
* An override of <xref:System.Object.GetHashCode?displayProperty=nameWithType>. This method can be declared explicitly.
126126

127-
* Overrides of operators `==` and `!=`. It's an error if the operators are declared explicitly.
127+
* 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.
128128

129129
* 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).
130130

@@ -263,4 +263,5 @@ For more information about these features, see the following feature proposal no
263263
- [Design guidelines - Choosing between class and struct](../../../standard/design-guidelines/choosing-between-class-and-struct.md)
264264
- [Design guidelines - Struct design](../../../standard/design-guidelines/struct.md)
265265
- [The C# type system](../../fundamentals/types/index.md)
266+
- [Operator overloading](../operators/operator-overloading.md)
266267
- [`with` expression](../operators/with-expression.md)

0 commit comments

Comments
 (0)