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.

Comparison Members

Generates a CompareTo implementation and optionally implements the IComparable<T> and IComparable interfaces.

Selectable items: members to compare on objects' comparison.

Options:

  • Implement IComparable<T> and IComparable interfaces — adds interfaces implementation to the target type.
  • Overload relational members — implements the overloads of the ">", "<", ">=" and "<=" operators to call the custom CompareTo method.

Example

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

Compare