Code Analysis ReferenceAnalyzersRCS1110On this pageRCS1110: Declare type inside namespacePropertiesPropertyValueDefault SeverityInfoMinimum language version-ExamplesExample #1diagnostic.cspublic class Foo{}fix.csnamespace Namespace{ public class Foo { }}Applies toExtension for VS 2022Extension for VS CodeExtension for Open VSXPackage Roslynator.Analyzers