Changeset 955


Ignore:
Timestamp:
5/1/2009 5:00:19 AM (5 years ago)
Author:
lowjoel
Message:

The GetADSes function only needs an IList, don't pass a generic List object around as good practice.

Location:
branches/eraser6
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/Manager/Task.cs

    r944 r955  
    331331        /// <param name="list">The list to add the ADS paths to.</param> 
    332332        /// <param name="file">The file to look for ADSes</param> 
    333         protected void GetPathADSes(List<string> list, out long totalSize, string file) 
     333        protected void GetPathADSes(ICollection<string> list, out long totalSize, string file) 
    334334        { 
    335335            totalSize = 0; 
     
    338338            { 
    339339                //Get the ADS names 
    340                 List<string> adses = Util.File.GetADSes(new FileInfo(file)); 
     340                ICollection<string> adses = Util.File.GetADSes(new FileInfo(file)); 
    341341 
    342342                //Then prepend the path. 
  • branches/eraser6/Util/File.cs

    r914 r955  
    4242        /// <returns>A list containing the names of the ADSes of each file. The 
    4343        /// list will be empty if no ADSes exist.</returns> 
    44         public static List<string> GetADSes(FileInfo info) 
     44        public static ICollection<string> GetADSes(FileInfo info) 
    4545        { 
    4646            List<string> result = new List<string>(); 
Note: See TracChangeset for help on using the changeset viewer.