If you wanted to use the ThreadState property (which should only be used for debugging and not sync.), to find out if a thread is running. Since the Running state has a value of 0, you cannot do a bit test to discover this state. But you could do something like this to get the same result:

if ((state & (Unstarted | Stopped)) == 0) //yea, its Running!