예제 #1
0
 protected override void Clean(CleanFileInfo file)
 {
     Console.WriteLine("Deleting file:      {0}", file.RelativePath);
     try
     {
         file.File.Delete();
     }
     catch (Exception ex)
     {
         using (new ConsoleColorDisposable(ConsoleColor.Red))
         {
             Console.WriteLine("\tFailed: {0}", ex.Message);
         }
     }
 }
예제 #2
0
 protected abstract void Clean(CleanFileInfo file);
예제 #3
0
 protected override void Clean(CleanFileInfo file)
 {
     Console.WriteLine("(NOT) Deleting file:      {0}", file.RelativePath);
 }