"Possible Duplicate:
C#中 | 和 || 的区别的简单易懂的解释是什么?
"
"C#和Javascript中,使用|和||或&和&&进行比较有什么不同?"
"例如:"
"C#和Javascript中,使用|和||或&和&&进行比较有什么不同?"
"例如:"
if(test == test1 | test1 == test2) or if(test == test1 || test1 == test2)
if(test == test1 & test1 == test2) or if(test == test1 && test1 == test2)