Udostępnij za pośrednictwem


Boolean Data Types (LINQ to SQL)

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 (Visual Basic)

& Operator (C# Reference)

AndAlso Operator

&& Operator (C# Reference)

Or Operator (Visual Basic)

| Operator (C# Reference)

OrElse Operator

|| Operator (C# Reference)

Xor Operator (Visual Basic)

^ Operator (C# Reference)

Not Operator (Visual Basic)

! Operator (C# Reference)

See Also

Other Resources

Data Types and Functions (LINQ to SQL)