<分区>
Possible Duplicate:
A clear, layman’s explanation of the difference between | and || in c# ?
和|比较有什么区别和||还是 C# 和 Javascript 中的 & 和 &&?
例子:
if(test == test1 | test1 == test2) or if(test == test1 || test1 == test2)
if(test == test1 & test1 == test2) or if(test == test1 && test1 == test2)