Changeset 2181 for trunk/eraser/Eraser.Util/VolumeInfo.cs
- Timestamp:
- 6/18/2010 9:54:08 AM (2 years ago)
- File:
-
- 1 edited
-
trunk/eraser/Eraser.Util/VolumeInfo.cs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/eraser/Eraser.Util/VolumeInfo.cs
r2179 r2181 566 566 567 567 /// <summary> 568 /// Gets the Physical Drive this Volume is in. 569 /// </summary> 570 public PhysicalDriveInfo PhysicalDrive 571 { 572 get 573 { 574 foreach (PhysicalDriveInfo info in PhysicalDriveInfo.Drives) 575 { 576 if (info.Volumes.IndexOf(this) != -1) 577 return info; 578 } 579 580 return null; 581 } 582 } 583 584 /// <summary> 568 585 /// Opens a file with read, write, or read/write access. 569 586 /// </summary> … … 697 714 IList<DirectoryInfo> mountPoints = MountPoints; 698 715 return mountPoints.Count == 0 ? VolumeId : mountPoints[0].FullName; 716 } 717 718 public override bool Equals(object obj) 719 { 720 VolumeInfo rhs = obj as VolumeInfo; 721 if (rhs == null) 722 return base.Equals(obj); 723 724 return VolumeId == rhs.VolumeId; 699 725 } 700 726
Note: See TracChangeset
for help on using the changeset viewer.
