What is the C++ code below doing? More specifically, what is the operator |=?
|=
long liFaultFlags = 0; for (int i = 0; i < FAULTCOUNT; i++) {
It is the bitwise OR operator and is equivalent to
liFaultFlags = liFaultFlags | (1<
You would write that line in exactly the same way in C#.