byte[] b = null; b = BitConverter.GetBytes(true); Console.WriteLine(BitConverter.ToString(b));