You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
26
26
27
27
## Rule description
28
28
@@ -33,11 +33,11 @@ The equality operator is intended to be a syntactically convenient way to access
33
33
34
34
## How to fix violations
35
35
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.
37
37
38
38
## When to suppress warnings
39
39
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.
0 commit comments