Find classes except derived from?

Is it possible to exclude findings based on some condition?

For example, I have a hierarchy of ASP.NET controllers:

  • My.WithAuthorizationController: Controller
  • My.SomeController: My.WithAuthorizationController
  • My.AnotherController: Controller

...and I want to find all classes derived directly from `Controller` (exclude those that derive from `MyWithAuthorizationController`) - in order to review them in case some of them mistakenly missing authorization aspect.

0
1 comment

Hello D Bardakov,

Thank you for reaching Rider forum.

Judging by your example, you may simply search for the " Cotroller" instead of "Controller".

If it is not the case though and it will nt help, you may want trying Regex search button: 

And search only words, that don't have anything before them. Reference for the syntax is in our documentation

Let me know if you have any further questions.

0

Please sign in to leave a comment.