Changeset 2148 for trunk/eraser/Eraser.Util/VolumeInfo.cs
- Timestamp:
- 5/16/2010 11:06:43 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
r2147 r2148 21 21 22 22 using System; 23 using System.Linq; 23 24 using System.Collections.Generic; 24 25 using System.Text; … … 564 565 /// trailing backslash. 565 566 /// </summary> 566 public ReadOnlyCollection<string> MountPoints 567 { 568 get 569 { 570 return (VolumeType == DriveType.Network ? 571 GetNetworkMountPoints() : GetLocalVolumeMountPoints()).AsReadOnly(); 567 public IList<DirectoryInfo> MountPoints 568 { 569 get 570 { 571 List<string> paths = VolumeType == DriveType.Network ? 572 GetNetworkMountPoints() : GetLocalVolumeMountPoints(); 573 return new List<DirectoryInfo>( 574 paths.Select(x => new DirectoryInfo(x))).AsReadOnly(); 572 575 } 573 576 }
Note: See TracChangeset
for help on using the changeset viewer.
