What is the C++ code below doing? More specifically, what is the operator |=?
|=
long liFaultFlags = 0; for (int i = 0; i < FAULTCOUNT; i++) {
The operator |= does bitwise OR and assignment rolled into one (much like += does integer addition and assignment together).
It's exactly the same in C#.