Possible Duplicate:
what does |= (single pipe equal) and &=(single ampersand equal) mean in c# (csharp)
Here is the context where it is being used:
long dirtyFlag = 0x0000;
if (erd.SupervisorCompType != orgErd.SupervisorCompType) // change has been made?
{
dirtyFlag |= 0x0001;
// etc...
}
dirtyFlag |= 0x0001is equivalent todirtyFlag = dirtyFlag | 0x0001. The|operator is the bitwise OR operator. In your case, it sets the lowest binary bit. Some further examples: