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 Basic | C# |
---|---|
And Operator | & Operator |
AndAlso Operator | && Operator |
Or Operator | | Operator |
OrElse Operator | || Operator |
Xor Operator | ^ Operator |
Not Operator | ! Operator |