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

Modified all dependent code to compile after the change in the previous revision.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser/Eraser.DefaultPlugins/ErasureTargets/FileSystemObjectErasureTarget.cs

    r2144 r2149  
    123123            try 
    124124            { 
    125                 //Get the ADS names 
    126                 IList<string> adses = file.GetADSes(); 
    127                 StreamInfo[] result = new StreamInfo[adses.Count]; 
    128  
    129                 //Then prepend the path. 
    130                 for (int i = 0; i < adses.Count; ++i) 
    131                 { 
    132                     StreamInfo info = new StreamInfo(file.FullName + ':' + adses[i]); 
    133                     result[i] = info; 
    134                 } 
     125                return file.GetADSes().ToArray(); 
    135126            } 
    136127            catch (FileNotFoundException) 
     
    150141                        processStr.AppendFormat( 
    151142                            System.Globalization.CultureInfo.InvariantCulture, 
    152                             "{0}, ", (System.Diagnostics.Process.GetProcessById(handle.ProcessId)).MainModule.FileName); 
     143                            "{0}, ", handle.Process.MainModule.FileName); 
    153144                    } 
    154145                    catch (System.ComponentModel.Win32Exception) 
     
    156147                        processStr.AppendFormat( 
    157148                            System.Globalization.CultureInfo.InvariantCulture, 
    158                             "Process ID {0}, ", handle.ProcessId); 
     149                            "Process ID {0}, ", handle.Process.Id); 
    159150                    } 
    160151                } 
     
    320311                        processStr.AppendFormat( 
    321312                            System.Globalization.CultureInfo.InvariantCulture, 
    322                             "{0}, ", System.Diagnostics.Process.GetProcessById(handle.ProcessId).MainModule.FileName); 
     313                            "{0}, ", handle.Process.MainModule.FileName); 
    323314                    } 
    324315                    catch (System.ComponentModel.Win32Exception) 
     
    326317                        processStr.AppendFormat( 
    327318                            System.Globalization.CultureInfo.InvariantCulture, 
    328                             "Process ID {0}, ", handle.ProcessId); 
     319                            "Process ID {0}, ", handle.Process.Id); 
    329320                    } 
    330321                } 
Note: See TracChangeset for help on using the changeset viewer.