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

Use discrete types where possible:

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser/Eraser.Util/ExtensionMethods/IO.cs

    r2112 r2148  
    324324        /// list will be empty if no ADSes exist.</returns> 
    325325        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")] 
    326         public static IList<string> GetADSes(this FileInfo info) 
    327         { 
    328             List<string> result = new List<string>(); 
     326        public static IList<StreamInfo> GetADSes(this FileInfo info) 
     327        { 
     328            List<StreamInfo> result = new List<StreamInfo>(); 
    329329            using (FileStream stream = new StreamInfo(info.FullName).Open(FileMode.Open, 
    330330                FileAccess.Read, FileShare.ReadWrite)) 
     
    341341 
    342342                    if (streamName.Length != 0) 
    343                         result.Add(streamName); 
     343                        result.Add(new StreamInfo(info.FullName, streamName)); 
    344344                } 
    345345            } 
Note: See TracChangeset for help on using the changeset viewer.