So I'm translating some java to c# here is a example bit
// bits = 12 bit number
int bits = table[index];
if (bits & 1)
{...}
if (bits & 2)
{...}
if (bits & 3)
{...}
ect
the bits & # bit errors because of
Cannot implicitly convert type 'int' to 'bool'
I understand the error, i'm just not sure how to convert the bits & # bit to c# safe code, anyone know how it should be?
Thank you.