AndAlso & OrElse Operators in C#
I often mix Or and OrElse operators in c#, thanks to c++ heritage. Here is a reference to those logical operators.
In brief, single operator (|) is Or while double operator (||) is OrElse. The same goes for And and AndAlso.
I often mix Or and OrElse operators in c#, thanks to c++ heritage. Here is a reference to those logical operators.
In brief, single operator (|) is Or while double operator (||) is OrElse. The same goes for And and AndAlso.
No comments:
Post a Comment