コード例 #1
0
        public Object ResolveRef(Assembly asm)
        {
            UCOMITypeLib rslt = null;

            Module[] aModule = asm.GetLoadedModules();
            String   asmPath = Path.GetDirectoryName(aModule[0].FullyQualifiedName);

            // If the typelib name is null then create it from the assembly name.
            String FullyQualifiedTypeLibName = Path.Combine(asmPath, asm.GetName().Name) + ".tlb.tmp";

            // Export the typelib for the module.
            rslt = GenMan32Code.GenerateTypeLib(asm, ref FullyQualifiedTypeLibName);

            return(rslt);
        }
コード例 #2
0
 internal UCOMITypeLib GenerateTypeLib(String strAssemblyName, ref String strTlbName)
 {
     return(GenMan32Code.GenerateTypeLib(strAssemblyName, ref strTlbName));
 }