Code Analysis ReferenceAnalyzersRCS1145On this pageRCS1145: Remove redundant 'as' operatorPropertiesPropertyValueDefault SeverityHiddenMinimum language version-ExamplesExample #1diagnostic.csstring s = null;string s2 = s as string;fix.csstring s2 = s;Applies toExtension for VS 2022Extension for VS CodeExtension for Open VSXPackage Roslynator.Analyzers