コード例 #1
0
 internal static bool IsValidAddinClass(IEnumerable <object> customAttributes)
 {
     if (false == AttributeReflection.ComVisibleAttributeExists(customAttributes) ||
         false == AttributeReflection.GuidAttributeExists(customAttributes) ||
         false == AttributeReflection.ProgIdAttributeExists(customAttributes))
     {
         return(false);
     }
     else
     {
         return(true);
     }
 }
コード例 #2
0
        internal static bool IsValidAddinClass(IEnumerable <object> customAttributes, TypeAttributes typeAttributes)
        {
            TypeAttributes isPublic = typeAttributes & TypeAttributes.Public;

            if (isPublic != TypeAttributes.Public)
            {
                return(false);
            }

            if (false == AttributeReflection.ComVisibleAttributeExists(customAttributes) ||
                false == AttributeReflection.GuidAttributeExists(customAttributes) ||
                false == AttributeReflection.ProgIdAttributeExists(customAttributes))
            {
                return(false);
            }
            else
            {
                return(true);
            }
        }