Exemplo n.º 1
0
        private static Attributes GetModuleAttributes(IComType module)
        {
            var attributes = new Attributes();

            if (module.IsPreDeclared)
            {
                attributes.AddPredeclaredIdTypeAttribute();
            }
            if (module.IsAppObject)
            {
                attributes.AddGlobalClassAttribute();
            }
            if (module is IComTypeWithMembers members && members.IsExtensible)
            {
                attributes.AddExtensibleClassAttribute();
            }
            return(attributes);
        }