private static uint GetFileCrc32(FileInfo fi) { if (!fi.Exists) { return(0); } var bytes = File.ReadAllBytes(fi.FullName); var crc1 = new Crc32Algorithm().ComputeHash(bytes); if (BitConverter.IsLittleEndian) { crc1 = crc1.Reverse().ToArray(); } var crc2 = BitConverter.ToUInt32(crc1, 0); return(crc2); }