internal static object GenerateTypeLibrary(Assembly asm, string tlb, Report report)
        {
            object obj3;

            try
            {
                TypeLibConverter converter = new TypeLibConverter();
                RegistrationExporterNotifySink notifySink = new RegistrationExporterNotifySink(tlb, report);
                object obj2 = converter.ConvertAssemblyToTypeLib(asm, tlb, TypeLibExporterFlags.OnlyReferenceRegistered, notifySink);
                ((ICreateTypeLib)obj2).SaveAllChanges();
                RegisterTypeLibrary(tlb);
                obj3 = obj2;
            }
            catch (Exception exception)
            {
                if ((exception is NullReferenceException) || (exception is SEHException))
                {
                    throw;
                }
                throw new RegistrationException(Resource.FormatString("Reg_TypeLibGenErr", tlb, asm), exception);
            }
            return(obj3);
        }
 internal static object GenerateTypeLibrary(Assembly asm, string tlb, Report report)
 {
     object obj3;
     try
     {
         TypeLibConverter converter = new TypeLibConverter();
         RegistrationExporterNotifySink notifySink = new RegistrationExporterNotifySink(tlb, report);
         object obj2 = converter.ConvertAssemblyToTypeLib(asm, tlb, TypeLibExporterFlags.OnlyReferenceRegistered, notifySink);
         ((ICreateTypeLib) obj2).SaveAllChanges();
         RegisterTypeLibrary(tlb);
         obj3 = obj2;
     }
     catch (Exception exception)
     {
         if ((exception is NullReferenceException) || (exception is SEHException))
         {
             throw;
         }
         throw new RegistrationException(Resource.FormatString("Reg_TypeLibGenErr", tlb, asm), exception);
     }
     return obj3;
 }