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

PropertyHasIgnoreRuleAttribute() публичный статический Метод

public static PropertyHasIgnoreRuleAttribute ( Microsoft.CodeAnalysis.CSharp.Syntax.PropertyDeclarationSyntax property, IEnumerable attributes ) : bool
property Microsoft.CodeAnalysis.CSharp.Syntax.PropertyDeclarationSyntax
attributes IEnumerable
Результат bool
        public static bool PropertyHasIgnoreRuleAttribute(PropertyDeclarationSyntax property,
                                                          IEnumerable<Type> attributes) =>
                property.AttributeLists
                    .SelectMany(l => l.Attributes, (l, a) => a.Name.GetText().ToString())
                    .Any(name => attributes.TryFirst(t => MatchAttributeName(t, name)).HasValue);