Arnolyzer.Analyzers.CommonFunctions.HasIgnoreRuleAttribute C# (CSharp) Метод

HasIgnoreRuleAttribute() приватный статический Метод

private static HasIgnoreRuleAttribute ( ISymbol symbol, IEnumerable attributes ) : bool
symbol ISymbol
attributes IEnumerable
Результат bool
        private static bool HasIgnoreRuleAttribute(ISymbol symbol, IEnumerable<Type> attributes) => 
            symbol.GetAttributes()
                  .Any(s => attributes.TryFirst(t => MatchAttributeName(t, s.AttributeClass.Name)).HasValue);