Ignore:
Timestamp:
5/16/2010 11:06:43 AM (5 years ago)
Author:
lowjoel
Message:

Use discrete types where possible:

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser/Eraser.Util/VolumeInfo.cs

    r2147 r2148  
    2121 
    2222using System; 
     23using System.Linq; 
    2324using System.Collections.Generic; 
    2425using System.Text; 
     
    564565        /// trailing backslash. 
    565566        /// </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(); 
    572575            } 
    573576        } 
Note: See TracChangeset for help on using the changeset viewer.