Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }