using System; public class Test { public static void Main() { byte A = 0x9a; byte B = 0x72; byte C = (byte)( (A & 0x80) | ((A & 0x20) << 1) | ((A & 0x08) << 2) | ((A & 0x02) << 3) | ((B & 0x80) >> 4) | ((B & 0x20) >> 3) | ((B & 0x08) >> 2) | ((B & 0x02) >> 1)); Console.WriteLine(C); } }