C#


ROSLYN.DESIGN.CA1036 : Override methods on comparable types (C#)

See Roslyn-Detected C# Warning Classes for more information.

Summary

A public or protected type implements the System.IComparable interface. It does not override Object.Equals nor does it overload the language-specific operator for equality, inequality, less than, less than or equal, greater than or greater than or equal.

This check corresponds to Roslyn rule CA1036. For full rule details, see the Microsoft website: CA1036.

Properties

Class Name Override methods on comparable types (C#)
Significance reliability
Mnemonic ROSLYN.DESIGN.CA1036
Categories None
Availability Available for C# only.
Enabling Checks for this warning class are enabled by default. To disable them, add the following WARNING_FILTER rule to the project configuration file.
WARNING_FILTER += discard class="Override methods on comparable types (C#)"

Relevant Configuration File Parameters

The following configuration file parameters affect checks for this warning class.