IT Log

Record various IT issues and difficulties.

Tag: binary inversion


  • What does ‘~’ mean in C#

    In C#, the ~ operator is a unary bitwise NOT operator. It inverts each bit of its integer operand, effectively producing the two’s complement representation of the number, which results in the negative of that number. Here are some key points about the ~ operator: Bitwise Inversion: The ~ operator flips all bits of the…