How to skip method overrides when searching for all references

I would like to determine the effect of code changes on overriding Equals () in my class on code.

  public override bool Equals(object obj)
  {
     // My code to be changed
     return true;
  }

When I do Shift-F12 to find all the links, Visual Studio returns 126,703 places where I call object.Equals ().

Is there a way to skip overrides of the Equals () method when looking for links?

+5
source share
1 answer

Since a method is Equalsdefined at the level object, an object of your class can be easily passed to a method that calls Equalswithout knowing anything other than what it is object.

, - HashSet .Distinct() , , Equals.

, Equals, , , , , .

+5

All Articles