/// <summary> /// Initializes a new instance of the <see cref="HostCDDrive"/> class. /// </summary> /// <param name="volume">The physical volume to access.</param> public HostCDDrive(string volume) { if (volume == null) { throw new ArgumentNullException(nameof(volume)); } this.hostDrive = new RawCDReader(volume); this.currentDisc = new Iso9660Disc(this.hostDrive); }
/// <summary> /// Initializes a new instance of the ISOImage class. /// </summary> /// <param name="isoFilePath">Full path to the ISO image file to read.</param> public ISOImage(string isoFilePath) { this.fileStream = File.OpenRead(isoFilePath); this.disc = new Iso9660Disc(this.fileStream); }