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 not be called if Action1 returns true, due to the rules of short-circuit evaluation. Note that this is a runtime optimization, not a compile-time optimization.