Wednesday, January 15, 2014

C#.net Conditional Operator Usage Tip

The && and || operators both “short circuit” when necessary. This means that after a complex expression
has been determined to be false, the remaining subexpressions will not be checked. If you require all expressions
to be tested regardless, you can use the related & and | operators.

No comments:

Post a Comment