operators - How do you return 'not uint' in C#? -
I have some code written in VB that reads as follows:
back (not (CRC32Result))
I'm trying to convert it to C #, and I have it:
return (! (Crc32Result) );
Although I get a compiler error:
Compiler Error Message: CS0023: Operator '!'
P> / div>
What are you trying to do If the bits of crc32result are inverted, then you want a tilde operator.
Return (~ crc32Result);
context
Comments
Post a Comment