Skip to content

Commit 568c69d

Browse files
authored
Fix wording in CA2224 doc (#49498)
1 parent 471a2fb commit 568c69d

File tree

1 file changed

+6
-6
lines changed
  • docs/fundamentals/code-analysis/quality-rules

1 file changed

+6
-6
lines changed

docs/fundamentals/code-analysis/quality-rules/ca2224.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: "CA2224: Override equals on overloading operator equals"
3-
description: "Learn about code analysis rule CA2224: Override equals on overloading operator equals"
2+
title: "CA2224: Override Equals() on overloading operator equals"
3+
description: "Learn about code analysis rule CA2224: Override Equals() on overloading operator equals"
44
ms.date: 11/04/2016
55
f1_keywords:
66
- "CA2224"
@@ -10,7 +10,7 @@ helpviewer_keywords:
1010
- "OverrideEqualsOnOverloadingOperatorEquals"
1111
- "CA2224"
1212
---
13-
# CA2224: Override Equals on overloading operator equals
13+
# CA2224: Override Equals() on overloading operator equals
1414

1515
| Property | Value |
1616
|-------------------------------------|------------------------------------------------|
@@ -22,7 +22,7 @@ helpviewer_keywords:
2222

2323
## Cause
2424

25-
A public type implements the equality operator but doesn't override <xref:System.Object.Equals%2A?displayProperty=fullName>.
25+
A public type implements the equality operator but doesn't override the <xref:System.Object.Equals%2A?displayProperty=fullName> method.
2626

2727
## Rule description
2828

@@ -33,11 +33,11 @@ The equality operator is intended to be a syntactically convenient way to access
3333
3434
## How to fix violations
3535

36-
To fix a violation of this rule, you should either remove the implementation of the equality operator, or override <xref:System.Object.Equals%2A> and have the two methods return the same values. If the equality operator does not introduce inconsistent behavior, you can fix the violation by providing an implementation of <xref:System.Object.Equals%2A> that calls the <xref:System.Object.Equals%2A> method in the base class.
36+
To fix a violation of this rule, you should either remove the implementation of the equality operator, or override <xref:System.Object.Equals%2A> and have the two methods return the same values. If the equality operator doesn't introduce inconsistent behavior, you can fix the violation by providing an implementation of <xref:System.Object.Equals%2A> that calls the <xref:System.Object.Equals%2A> method in the base class.
3737

3838
## When to suppress warnings
3939

40-
It is safe to suppress a warning from this rule if the equality operator returns the same value as the inherited implementation of <xref:System.Object.Equals%2A>. The examples in this article include a type that could safely suppress a warning from this rule.
40+
It's safe to suppress a warning from this rule if the equality operator returns the same value as the inherited implementation of <xref:System.Object.Equals%2A>. The examples in this article include a type that could safely suppress a warning from this rule.
4141

4242
## Suppress a warning
4343

0 commit comments

Comments
 (0)