Code Analysis ReferenceFixesCS1023On this pageCS1023PropertyValueTitleEmbedded statement cannot be a declaration or labeled statement.SeverityErrorCode FixesAdd braces to declaration or labeled statementSee AlsoOfficial Documentation