public static AttributeSyntax Attribute(string name, string value = null) { if (value == null) { return(SyntaxFactory.Attribute(IdentifierName(name))); } else { return(SyntaxStarter.Attribute(name, SyntaxStarter.AttributeArgument(value))); } }
public static AttributeSyntax Attribute(string name, int value) { return(SyntaxStarter.Attribute(name, SyntaxStarter.AttributeArgument(value))); }