예제 #1
0
        private void CompareMd5(IFileInfo fileToCompress, IFileInfo decompressedFile)
        {
            var result = new IFileInfo[] { fileToCompress, decompressedFile }
            .Select(file => (file.FullName, md5: FileTools.CalculateMD5(file.FullName)))
            .ToList();

            result.ForEach(x => Console.WriteLine($"{x.FullName}: {x.md5}"));
            Console.WriteLine(result[0].md5 == result[1].md5);
        }