Thursday, September 20, 2018

Delete a file with C#!

using System.IO;
using MyOwnStuff.Core.Interfaces;
namespace MyOwnStuff.Infrastructure.ExternalDependencies
{
   public class FileRemoval : IFileRemoval
   {
      public void Destroy(string filePath)
      {
         File.Delete(filePath);
      }
   }
}

No comments:

Post a Comment