Byte to Binary String C# – Display all 8 digits

Convert.ToString(MyVeryOwnByte, 2).PadLeft(8, '0');

This will fill the empty space to the left with ‘0’ for a total of 8 characters in the string

Leave a Comment