二进制数在C#中的写法:

byte b=0b01111110

二进制字符串的解释:

string bstr="0111110";
byte b=Convert.ToByte(bstr,2)
//b=126

相关文章: