可能重复:
What is the diffference between the | and || or operators?
What does | (pipe) mean in c#?单个|是什么?或&意思?
我有写在办公室的另一个开发者,谁不是在当下一些代码。我的代码有一些工作要做,但我之前没有昏迷过。我试着在这里搜索,但它剥去了我的|走出搜索线。我也不知道那个符号的名字是什么,所以不能像那样搜索它。
this.Action.Values[key] = (int)this.Action.Values[key] | 1;
我的问题是在这种情况下单身或做什么?
按位或'和按位'和'http://en.wikipedia.org/wiki/Bitwise_operation – kenny 2012-03-16 11:57:17
道歉为重复的帖子,正如我在这个网站上的搜索框中提到的问题中提到的|符号。 – Andrew 2012-03-16 11:59:40