更新:2007 年 11 月
“或”赋值运算符。
备注
使用 |= 赋值运算符的表达式,例如
x |= y  | |
等效于
x = x | y  | |
不同的是 x 只计算一次。
不能直接重载 |= 运算符,但用户定义的类型可以重载 
示例
| C# | |
|---|---|
class MainClass7 { static void Main() { int a = 0x0c; a |= 0x06; Console.WriteLine("0x{0:x8}", a); bool b = true; b |= false; Console.WriteLine(b); } } /* Output: 0x0000000e True */  | |