/// <summary> /// Initializes a new instance of the Disk class. /// </summary> /// <param name="file">The contents of the disk.</param> private Disk(DiskImageFile file) { _file = new DiscUtils.Tuple<DiskImageFile, Ownership>(file, Ownership.Dispose); }
/// <summary> /// Initializes a new instance of the Disk class. /// </summary> /// <param name="file">The contents of the disk.</param> private Disk(DiskImageFile file) { _file = new DiscUtils.Tuple <DiskImageFile, Ownership>(file, Ownership.Dispose); }
/// <summary> /// Initializes a new instance of the Disk class. /// </summary> /// <param name="path">The path to the disk image</param> public Disk(string path) { DiskImageFile file = new DiskImageFile(path, FileAccess.Read); _file = new DiscUtils.Tuple<DiskImageFile, Ownership>(file, Ownership.Dispose); }
/// <summary> /// Initializes a new instance of the Disk class. /// </summary> /// <param name="path">The path to the disk image</param> public Disk(string path) { DiskImageFile file = new DiskImageFile(path, FileAccess.Read); _file = new DiscUtils.Tuple <DiskImageFile, Ownership>(file, Ownership.Dispose); }