Telerik® JustCode™ by Progress

The Generate Missing Equality Member quick fix is available once Telerik® JustCode™ has detected that you have one of the Equals or GetHashCode methods overridden, but not the other one.

Note

Language Support

Supported: C#, VB.NET

Not relevant: JavaScript, ASP.NET, XAML, HTML

To generate a missing GetHashCode method

  1. Position the caret over the underlined warning.

  2. Press Alt+Enter. From the pop-up menu, select Generate GetHashCode Override

    Generate Missing Get Hash Code Select
  3. The result is:

    Generate Missing Get Hash Code Result

To generate a missing Equals method

  1. Position the caret over the underlined warning.

  2. Press Alt+Enter. From the pop-up menu, select Generate Equals Override

    Generate Missing Equals Select
  3. The result is:

    Generate Missing Equals Result

See Also