Пример #1
0
        public AssemblyMetadata(ModuleMetadata manifestModule, Func <string, ModuleMetadata> moduleFactory)
            : base(isImageOwner: true, id: MetadataId.CreateNewId())
        {
            Debug.Assert(manifestModule != null);
            Debug.Assert(moduleFactory != null);

            _initialModules   = new ModuleMetadata[] { manifestModule };
            _moduleFactoryOpt = moduleFactory;
        }
Пример #2
0
 public AssemblyMetadata(ModuleMetadata[] modules)
     : base(isImageOwner: true, id: MetadataId.CreateNewId())
 {
     Debug.Assert(modules != null && modules.Length > 0);
     _initialModules = modules;
 }
Пример #3
0
 private ModuleMetadata(PEReader peReader)
     : base(isImageOwner: true, id: MetadataId.CreateNewId())
 {
     _module = new PEModule(this, peReader: peReader, metadataOpt: IntPtr.Zero, metadataSizeOpt: 0, includeEmbeddedInteropTypes: false, ignoreAssemblyRefs: false);
 }
Пример #4
0
 private ModuleMetadata(IntPtr metadata, int size, bool includeEmbeddedInteropTypes, bool ignoreAssemblyRefs)
     : base(isImageOwner: true, id: MetadataId.CreateNewId())
 {
     _module = new PEModule(this, peReader: null, metadataOpt: metadata, metadataSizeOpt: size, includeEmbeddedInteropTypes: includeEmbeddedInteropTypes, ignoreAssemblyRefs: ignoreAssemblyRefs);
 }
Пример #5
0
 public Metadata(bool isImageOwner, MetadataId id)
 {
     this.IsImageOwner = isImageOwner;
     this.Id           = id;
 }