Changeset 2172
- Timestamp:
- 6/13/2010 9:57:37 AM (3 years ago)
- File:
-
- 1 edited
-
branches/eraser6/6.0/Eraser.Util/VolumeInfo.cs (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eraser6/6.0/Eraser.Util/VolumeInfo.cs
r2168 r2172 91 91 private List<string> GetLocalVolumeMountPoints() 92 92 { 93 if (!IsReady)94 throw new InvalidOperationException("The volume has not been mounted or is not " +95 "currently ready.");96 97 93 List<string> result = new List<string>(); 98 94 … … 369 365 get 370 366 { 371 if (!IsReady)372 throw new InvalidOperationException("The volume has not been mounted or is not " +373 "currently ready.");374 367 return (DriveType)KernelApi.NativeMethods.GetDriveType(VolumeId); 375 368 } … … 563 556 get 564 557 { 565 if (!IsReady)566 throw new InvalidOperationException("The volume has not been mounted or is not " +567 "currently ready.");568 569 558 return (VolumeType == DriveType.Network ? 570 559 GetNetworkMountPoints() : GetLocalVolumeMountPoints()).AsReadOnly(); … … 577 566 public bool IsMounted 578 567 { 579 get { return IsReady &&MountPoints.Count != 0; }568 get { return MountPoints.Count != 0; } 580 569 } 581 570
Note: See TracChangeset
for help on using the changeset viewer.
