I have a class that has negative flag ("DoNot{Action}"). I would like to change this flag to positive "Do" and change all checks in the code, basically negating them. Is there such refactoring?
Here is an example. If I change the flage DoNotFilter to DoFilter all code that looks at this flag should change accordingly.
public bool DoNotFilter
{get;private set;}
changes to
public bool DoFilter
{get;private set;}
so
if (attribute.DoNotFilter == true)
need to change to
if (attribute.DoFilter == false)