Just cast to an int, and then print out individual bits.
int x = (int)o
List<int> flags = new List<int>();
for(int i = 1; i < (1 << 30); i <<= 1)
if(x & i != 0)
flags.Add(i);
return flags;
Anon.
2010-07-08 22:00:51