prüfen, welche Bits eines Bytes gesetzt

byte byt = 56; // "00011100"
string sOutPut = "";

// alle Bits durchgehen, i ist die Stelle des Bits
for (int i = 0; i < 8; i++)
{
    if (((byt >> i) & 1) == 1)
    {
        sOutPut += "1";
    }
    else
    {
        sOutPut += "0";
    }
}