/// <summary> /// Gets the Portable Executeable's NT header by specifing the assembly. /// </summary> /// <param name="assembly">The assembly to read the nt header</param> /// <returns></returns> public static NETHeader FromAssembly(LWin32 assembly) { NETHeader header = new NETHeader(); header._assembly = assembly; NETHeaderReader reader = new NETHeaderReader(assembly._ntHeader, header); header._metadata = new MetaDataHeader(reader); reader.LoadData(); header.TokenResolver = new MetaDataTokenResolver(header); return(header); }
internal MetaDataHeader(NETHeaderReader reader) { this._reader = reader; }
/// <summary> /// Gets the Portable Executeable's NT header by specifing the assembly. /// </summary> /// <param name="assembly">The assembly to read the nt header</param> /// <returns></returns> public static NETHeader FromAssembly(LWin32 assembly) { NETHeader header = new NETHeader(); header._assembly = assembly; NETHeaderReader reader = new NETHeaderReader(assembly._ntHeader, header); header._metadata = new MetaDataHeader(reader); reader.LoadData(); header.TokenResolver = new MetaDataTokenResolver(header); return header; }