/// <summary> /// Add a managed resource from another file in this assembly. /// </summary> /// <param name="resName">The name of the resource</param> /// <param name="assem">The assembly where the resource is</param> /// <param name="isPublic">Access for the resource</param> public void AddExternalManagedResource(string resName, ResourceFile resFile, uint offset, bool isPublic) { Contract.Requires(resName != null); resources.Add(new ManifestResource(this, resName, resFile, offset, isPublic)); }
internal static void Read(PEReader buff, TableRow[] files) { for (int i = 0; i < files.Length; i++) { uint flags = buff.ReadUInt32(); if (flags == HasMetaData) files[i] = new ModuleFile(buff.GetString(), buff.GetBlob()); else files[i] = new ResourceFile(buff.GetString(), buff.GetBlob()); } }