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