C# :: Checking if a bit is set or not
        Posted  
        
            by Manjoor
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Manjoor
        
        
        
        Published on 2010-03-12T09:45:27Z
        Indexed on 
            2010/03/12
            9:47 UTC
        
        
        Read the original article
        Hit count: 270
        
Shhow me a very simple one line example in C# to check if a given bit is set in given byte
function signature should be like
bool IsBitSet(Byte b,byte nPos)
{
   return .....;
}
The Speed vs
© Stack Overflow or respective owner