using System.IO.Compression;
public static class ZipArchiveEntryExtension {
static readonly FieldInfo field = typeof(ZipArchiveEntry).GetField("_crc32",
public static UInt32 Crc32(this ZipArchiveEntry entry)
return (UInt32)field.GetValue(entry);
public static void Main()
MemoryStream s = new MemoryStream();
ZipArchive archive = new ZipArchive(s, ZipArchiveMode.Create);
ZipArchiveEntry entry = archive.CreateEntry("crcTestEntry");
Console.WriteLine(entry.Crc32());
using (var es = entry.Open()) {
Console.WriteLine(entry.Crc32());