CS.CONSTCOND.WHILEThe condition of a 'while' statement is always true or always false. Example 11 class Something { 2 void DoSomething() { 3 while (false) { // defect 4 /* ... */ 5 } 6 while (true) { // Ok - typical usage of 'do' constructs when a user to organize an infinite loop 7 /* ... */ 8 } 9 } 10 } |