Exemple #1
0
        public static IDisposable TemporaryRemove(string filename)
        {
            var wrapper = new RestorationWrapper(filename);

            if (File.Exists(filename))
            {
                File.Delete(filename);
            }
            return(wrapper);
        }
Exemple #2
0
 public static IDisposable TemporaryRemove(string filename) {
     var wrapper = new RestorationWrapper(filename);
     if (File.Exists(filename)) File.Delete(filename);
     return wrapper;
 }