Pages

Thursday, December 04, 2008

AndAlso & OrElse in C#

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.

No comments: