I forget it - HELP

  • Thread starter Thread starter Tamir Khason
  • Start date Start date
T

Tamir Khason

I forget to do this shorter way:
A != B | A != C | A !=D |.....etc
As far as I remember it is something like
A != {B|C|D} ....

Please help
 
I forgot it too.

(in case you are serious about this: this doesn't look like C# or any other
popular language.
It has more of a functional language.)

Bye
 
if you remember it for a 100%, you should be able to remember the syntax as
well.
btw, what types are A, B, C ... supposed to be ?
 
I remember that I did it, but I do not remember how... :)
any type (the same[string,int, etc.])
 
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.
 
since you want to find out inequality, wouldn't it save some computation
if you do the orginial way:
A != B || A != C || A != D || ......
?
 
Back
Top