The requested page is not available for the requested platform. You are viewing the content for Default platform.
All docs
V19.1
19.1
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

Equality Members

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.

Compare