Code Analysis ReferenceAnalyzersRCS1158On this pageRCS1158: Static member in generic type should use a type parameterPropertiesPropertyValueDefault SeverityInfoMinimum language version-ExamplesExample #1diagnostic.cspublic class Foo<T>{ public static void Bar() { }}Applies toExtension for VS 2022Extension for VS CodeExtension for Open VSXPackage Roslynator.Analyzers