Method BitCount BitCount(Byte) Return the number of bits sets in b. Declaration public static int BitCount(byte b) Parameters Type Name Description System.Byte b Returns Type Description System.Int32