Пример #1
0
 public static ConstructorDeclarationSyntax WithAttributes(this ConstructorDeclarationSyntax node, params AttributeSyntax[] attributes)
 {
     return(node.AddAttributeLists(AttributeList(SeparatedList(attributes))));
 }
Пример #2
0
 public static ConstructorDeclarationSyntax WithGeneratedNonUserCodeAttributes(this ConstructorDeclarationSyntax node)
 => node.AddAttributeLists(GeneratedNonUserCodeAttributeList());