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

Popular posts from this blog

email - PHP mail error ... failed to open stream : permission denied -

c# - ListView onScroll event -

c - Linux mmap() error -