C#C
C#2y ago
SWEETPONY

✅ how to check attribute name?

I have following:
if (syntaxNode
    is RecordDeclarationSyntax
    and MemberDeclarationSyntax { AttributeLists.Count: > 0 } member)
{
    MemberSyntaxes.Add(member);
}


I want to check if member contains special attribute. How to do it?
Was this page helpful?