两边都是整数时是按位或;两边是bool型时,当且仅当两个操作数均为 false时,结果才为 false。
或、当“| ”两边有一面是“真” 则 “|” 成立 a|b=“真”
Binary | operators are predefined for the integral types and bool. For integral types, | computes the bitwise OR of its operands. For bool operands, | computes the logical OR of its operands; that is, the result is false if and only if both its operands are false.
From MSDN:http://msdn.microsoft.com/en-US/library/kxszd0kx(v=VS.100).aspx
两边都是枚举就得到一个新枚举,表示“即是A又是B”,前提是枚举是Flag枚举
按位或。。。