CS.CONSTCOND.WHILE
“while”语句的条件始终为 true 或始终为 false。
示例 1
复制
class Something {
void DoSomething() {
while (false) { // defect
/* ...*/
}
while (true) { // Ok - typical usage of 'do' constructs when a user to organize an infinite loop
/* ...*/
}
}
}