private Module(Assembly assembly, ModuleRow* moduleRow, PEFile peFile) { m_lockObject = new object(); m_assembly = assembly.CheckNotNull("assembly"); m_pModuleRow = (ModuleRow *)FluentAsserts.CheckNotNull((void *)moduleRow, "moduleRow"); m_peFile = peFile.CheckNotNull("peFile"); m_containsMetadata = true; }
private Module(Assembly assembly, ModuleRow *moduleRow, PEFile peFile) { m_lockObject = new object(); m_assembly = assembly.CheckNotNull("assembly"); m_pModuleRow = (ModuleRow *)FluentAsserts.CheckNotNull((void *)moduleRow, "moduleRow"); m_peFile = peFile.CheckNotNull("peFile"); m_containsMetadata = true; }
internal ModuleCollection(Assembly assembly, PEFile mainFile) { try { m_assembly = assembly.CheckNotNull("assembly"); m_mainFile = mainFile.CheckNotNull("mainFile"); m_otherModules = new object[MetadataTable.File.RowCount(m_mainFile)]; m_lockObject = new object(); } catch { Dispose(); throw; } }