In c# what does the ^ character do? [duplicate]

This is binary XOR operator.

Binary ^ operators are predefined for
the integral types and bool. For
integral types, ^ computes the bitwise
exclusive-OR of its operands. For bool
operands, ^ computes the logical
exclusive-or of its operands; that is,
the result is true if and only if
exactly one of its operands is true.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)