Пример #1
0
 private static void ReportIfListT(TypeSyntax typeSyntax, SyntaxNodeAnalysisContext context, string memberType)
 {
     if (typeSyntax != null && typeSyntax.IsKnownType(KnownType.System_Collections_Generic_List_T, context.SemanticModel))
     {
         context.ReportDiagnosticWhenActive(Diagnostic.Create(Rule, typeSyntax.GetLocation(), messageArgs: memberType));
     }
 }