Code Analysis ReferenceAnalyzersRCS1246On this pageRCS1246: Use element accessPropertiesPropertyValueDefault SeverityInfoMinimum language version-ExamplesExample #1diagnostic.cslist.First()fix.cslist[0]Example #2diagnostic.cslist.ElementAt(1)fix.cslist[1]Applies toExtension for VS 2022Extension for VS CodeExtension for Open VSXPackage Roslynator.Analyzers