public static AttributeSyntax AttributeWithArgument(string attributeName, params string[] attributeArguments) { return(SF.Attribute(SF.IdentifierName(attributeName), SF.AttributeArgumentList() .WithArguments(SF.SeparatedList(attributeArguments.Select(arg => SF.AttributeArgument(SF.IdentifierName(arg))))))); }