Show pageOld revisionsBacklinksExport to PDFBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== C# Converting byte to binary string and vice versa ====== <code c#> string a = Convert.ToString(value, 2).PadLeft(8, '0'); // Convert byte (value) to binary string byte a = Convert.ToByte(NewFlags, 2); // Convert binary string to byte </code> development/csharp/byte_to_bin_and_vice_versa.txt Last modified: 2021/05/19 12:17by 127.0.0.1