APD.IntegrationTests.VCS.Git.GitSharpTestFunctions.DeleteFileSystemInfo C# (CSharp) Метод

DeleteFileSystemInfo() защищенный статический Метод

protected static DeleteFileSystemInfo ( FileSystemInfo fsi ) : void
fsi System.IO.FileSystemInfo
Результат void
        protected static void DeleteFileSystemInfo(FileSystemInfo fsi)
        {
            fsi.Attributes = FileAttributes.Normal;
            var di = fsi as DirectoryInfo;

            if (di != null)
                foreach (var dirInfo in di.GetFileSystemInfos())
                    DeleteFileSystemInfo(dirInfo);

            fsi.Delete();
        }

Same methods

GitSharpTestFunctions::DeleteFileSystemInfo ( string dir ) : void
GitSharpTestFunctions