Code Analysis ReferenceRefactoringsConvert 'do' to 'while'On this pageConvert 'do' to 'while'PropertyValueIdRR0123Applicable Syntaxdo statementSyntax Spando keywordEnabled by Default✓UsageExample #1before.csdo{} while (condition);after.cswhile (condition){}Configurationroslynator_refactoring.convert_do_to_while.enabled = true|false