byte[] arry = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }; arry[0] = (byte)(arry[0] | 1); string result = String.Join("", arry); Console.WriteLine(result);
byte[] arry = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }; arry[0] = (byte)(arry[0] | 1); string result = String.Join("", arry); Console.WriteLine(result);
转载于:https://www.cnblogs.com/LicwStack/p/9849232.html