/// <summary> /// Constructs a reader from the specified file. /// </summary> /// <param name="file">The file to read data from.</param> public PEImageReader(string file) { if (file == null) { throw new ArgumentNullException("file"); } reader = new PEImageDataReader(file); }
/// <summary> /// Constructs a reader from the specified stream. /// </summary> /// <param name="stream">The stream to read data from.</param> /// <remarks> /// <para> /// The stream is not disposed when the reader is disposed. /// </para> /// </remarks> public PEImageReader(Stream stream) { reader = new PEImageDataReader(stream); }