/// <summary> /// Called when the user passes the <c>/tlb</c> argument. If needed, exports /// the assembly to the specified type library, then registers the type library. /// </summary> private void ExportAndRegisterTypeLibrary() { Debug.Assert(prms.typeLibrary != null); // If the tlb is in the assembly, register it right away. // Otherwise, export and register it, which could cause // recursive registrations. TypeLibHelper tlbHelper = new TypeLibHelper(console, prms); if (String.Compare(prms.typeLibrary, prms.assemblyName, true) == 0) { tlbHelper.RegisterTypeLibrary(prms.typeLibrary); } else { tlbHelper.ExportAndRegisterTypeLibrary(assembly, prms.typeLibrary); } }
/// <summary> /// Constructor. /// </summary> /// <param name="parent">Parent <see cref="TypeLibHelper"/> /// to call back for recursive exporting. Cannot be <c>null</c>. </param> public ConverterCallback(TypeLibHelper parent) { Debug.Assert(parent != null); this.parent = parent; }