[Solved] What is the C# equivalent code for C programming statement? [closed]


Since #define in C# is different from C and C++, you should use method call instead.

private int xtime(int x)
{
    return (x << 1) ^ (((x >> 7) & 1) * 0x1b);
}

solved What is the C# equivalent code for C programming statement? [closed]