Hi Tamir,
Thank you for posting in the community! My name is Jeffrey, and I will be
assisting you on this issue.
=======================================
Actually, I still can not provide your answer for your shorter way. But I
want to remind you something important:
"| Operator" is a C# binary operator that is predefined for the integral
types and bool. So if the B, C, D are other types, they can not be applied
with "| Operator".
Also, the "| Operator" applies different effect with int and bool types.
For integral types, | computes the bitwise OR of its operands. For bool
operands, | computes the logical OR of its operands.
For more information, please refer to:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csref/html/
vclrfBarOperator.asp
=======================================
Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.
Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.