What does | (pipe) mean in c#?

前端 未结 6 1057
鱼传尺愫
鱼传尺愫 2020-12-03 17:23

Just wondering what the pipe means in this? ive never seen it before:

FileSystemAccessRule fullPermissions = new FileSystemAccessRule(
             \"Network         


        
6条回答
  •  情深已故
    2020-12-03 17:57

    It's a binary operator:

    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.

提交回复
热议问题