public CodeCustomAttribute CreateCustomAttribute(Type attributeType, Type [] ctorArgTypes, CodeLiteral [] ctorArgs, FieldInfo [] fields, CodeLiteral [] fieldValues) { CodeCustomAttribute cca = CodeCustomAttribute.Create( attributeType, ctorArgTypes, ctorArgs, fields, fieldValues); SetCustomAttribute(cca); return(cca); }
public CodeCustomAttribute CreateCustomAttribute(Type attributeType, Type [] ctorArgTypes, object [] ctorArgs, string [] namedArgFieldNames, object [] namedArgValues) { CodeCustomAttribute cca = CodeCustomAttribute.Create( attributeType, ctorArgTypes, ctorArgs, namedArgFieldNames, namedArgValues); SetCustomAttribute(cca); return(cca); }