Boolean Data Types


Boolean operators work as expected in the common language runtime (CLR), except that short-circuiting behavior is not translated. For example, the Visual Basic AndAlso operator behaves like the And operator. The C# && operator behaves like the & operator.

LINQ to SQL supports the following operators.

Visual BasicC#
And Operator& Operator
AndAlso Operator&& Operator
Or Operator| Operator
OrElse Operator|| Operator
Xor Operator^ Operator
Not Operator! Operator

Data Types and Functions