14.9.4 Boolean equality operators
来源:互联网 发布:互联网商业模式知乎 编辑:程序博客网 时间:2024/06/04 19:22
The predefined boolean equality operators are:
bool operator ==(bool x, bool y);
bool operator !=(bool x, bool y);
The result of == is true if both x and y are true or if both x and y are
false. Otherwise, the result is
false.
C# LANGUAGE SPECIFICATION
166
The result of != is false if both x and y are true or if both x and y are
false. Otherwise, the result is
true. When the operands are of type bool, the != operator produces the same
result as the ^ operator.
bool operator ==(bool x, bool y);
bool operator !=(bool x, bool y);
The result of == is true if both x and y are true or if both x and y are
false. Otherwise, the result is
false.
C# LANGUAGE SPECIFICATION
166
The result of != is false if both x and y are true or if both x and y are
false. Otherwise, the result is
true. When the operands are of type bool, the != operator produces the same
result as the ^ operator.
- 14.9.4 Boolean equality operators
- 14.9.7 String equality operators
- 14.9.8 Delegate equality operators
- 14.9.6 Reference type equality operators
- Python中的 equality operators
- Equality
- Operators
- Operators
- Operators
- Operators
- RxJava操作符——条件和布尔操作符(Conditional and Boolean Operators)
- 14.9 Relational & type-testing operators
- 14.9.1 Integer comparison operators
- 14.9.3 Decimal comparison operators
- 14.9.5 Enumeration comparison operators
- Base equality
- Boolean
- 14.9.2 Floating-point comparison operators
- 关于session的详细解释
- 14.9 Relational & type-testing operators
- 14.9.1 Integer comparison operators
- 14.9.2 Floating-point comparison operators
- 14.9.3 Decimal comparison operators
- 14.9.4 Boolean equality operators
- 14.9.5 Enumeration comparison operators
- 14.9.6 Reference type equality operators
- 14.9.7 String equality operators
- 14.9.8 Delegate equality operators
- 14.9.9 The is operator
- 14.9.10 The as operator
- 14.10 Logical operators
- 14.11 Conditional logical operators