标签:== tco for convert console catch byte break bit
int k = 6;
byte[] bytearr = BitConverter.GetBytes(k);
BitArray myBA = new BitArray(bytearr);
for (int i = 0; i < myBA.Length; i++)
{
try
{
Console.Write(myBA[i]== true ? "1" : "0");
}
catch
{
//Console.Write("0");
break;
}
}
Console.Read();
标签:== tco for convert console catch byte break bit
原文地址:https://www.cnblogs.com/yafeili/p/9810136.html