|
InvertReturnValue
Inverts the return value of a boolean method. This is useful when renaming a method to a name that changes the semantics of the return value, e.g. from "IsNull" to "IsNotNull". Example: bool Foo(int x, int y) {
if (x > 100) {
return true;
}
return x < y;
}to bool Foo(int x, int y) {
if (x > 100) {
return false;
}
return !(x < y);
}
|
Sign in to add a comment
Does it update usages?