示例#1
0
文件: Module.cs 项目: scottwis/tiny
 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;
 }
示例#2
0
 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;
 }
示例#3
0
 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;
     }
 }