public ConverterAssemblyInfo(ConverterInfo info, Assembly assembly, TypeLib typeLib) { m_assembly = assembly; m_typeLib = typeLib; m_info = info; m_classInterfaceMap = new ClassInterfaceMap(m_typeLib); // Try GUID_ManagedName m_tlbNamespace = m_info.GetCustomNamespaceForTypeLib(typeLib); if (m_tlbNamespace == null) { // Try to use the namespace of the first type Type[] types = assembly.GetTypes(); if (types.Length > 0) { m_tlbNamespace = types[0].Namespace; } } // Otherwise use the type library name if (m_tlbNamespace == null) { m_tlbNamespace = m_typeLib.GetDocumentation(); } }
public ClassInterfaceMap GetClassInterfaceMap() { if (m_classInterfaceMap == null) { m_classInterfaceMap = new ClassInterfaceMap(m_typeLib); } return(m_classInterfaceMap); }