In C#, given the two methods
bool Action1(object Data); bool Action2(object Data);
that are used in an if statement like this:>
if
Action2() will only be called if Action1() returns false
This is conceptually similar to
if (Action1(Data)) { PerformOtherAction(); } else if (Action2(Data)) { PerformOtherAction(); }