Mensaje
General information
Foro:
ASP.NET
Category:
Título:
Flip the most significant bit in a byte
Environment versions
Environment:
C# 2.0
Miscellaneous
ID de la conversación:
01158678
ID del mensaje:
01158678
Views:
66
Given a byte I need to flip the most significant bit on to create another byte.
Something like this:
byte newByte = FlipBit7(oldByte);

What is the most elegant way of doing this?

Thanks,
Einar
Semper ubi sub ubi.
Next
Responder
Mapa
Ver