逻辑非运算符 (!) 是对操作数求反的二进制运算符。为 bool 定义了该运算符,当且仅当操作数为 false 时才返回 true。
~ 运算符对操作数执行按位求补操作。为 int、uint、long 和 ulong 预定义了按位求补运算符。