Back to Devexpress

Equality Members

coderushforroslyn-401065-coding-assistance-declare-menu-declare-providers-equality-members.md

latest646 B
Original Source

Equality Members

  • Jul 15, 2019

Generates two Equals methods and a GetHashCode override.

Selectable items : members to check for equality.

Options :

  • Overload equality members — implements the overloads of the “ == “ and “ != “ operators, so that they call the custom Equals method.
  • Implement IEquatable<T> interface — adds the interface implementation to the target type.

Example

The screencast below shows how to use the Equality Members action in Declare Menu.