Esempio n. 1
0
 public static ConstructorDeclarationSyntax WithAttributes(this ConstructorDeclarationSyntax node, params AttributeSyntax[] attributes)
 {
     return(node.AddAttributeLists(AttributeList(SeparatedList(attributes))));
 }
Esempio n. 2
0
 public static ConstructorDeclarationSyntax WithGeneratedNonUserCodeAttributes(this ConstructorDeclarationSyntax node)
 => node.AddAttributeLists(GeneratedNonUserCodeAttributeList());