Inheritance: IDisposable
Exemplo n.º 1
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;
 }
Exemplo n.º 2
0
 public static int Main(string[] argv)
 {
     String exeFilePath = new Uri(System.Reflection.Assembly.GetEntryAssembly().CodeBase).LocalPath;
     String dllFilePath = Path.Combine(Path.GetDirectoryName(exeFilePath), "Tiny.Core.dll");
     using (var assembly = new Assembly(dllFilePath)) {
         var m = assembly.Modules[0];
     }
     return 0;
 }
Exemplo n.º 3
0
 private Module(Assembly assembly, string name)
 {
     m_assembly = assembly;
     m_name = name;
     m_containsMetadata = false;
 }
Exemplo n.º 4
0
 internal static Module CreateNonMetadataModule(Assembly assembly, string name)
 {
     return new Module(assembly, name.CheckNotNull("name"));
 }
Exemplo n.º 5
0
 internal static Module CreateMetadataModule(Assembly assembly, ModuleRow* moduleRow, PEFile peFile)
 {
     return new Module(assembly, moduleRow, peFile);
 }
Exemplo n.º 6
0
 public bool Add(Assembly assembly)
 {
     //TODO: Implement this
     throw new NotImplementedException();
 }