C# .Net 3.5 Unzip zip file no 3rd party

后端 未结 4 706
闹比i
闹比i 2021-01-22 10:36

I am writing a Winform application in .NET 3.5, and I need unzip a .rar or .zip file.
I found many things, but I didn\'t found none 3rd party. I couldn\'t change to .NET 4

4条回答
  •  走了就别回头了
    2021-01-22 11:02

    Actually, .NET 3.5 does .zip files using the DeflateStream. You have to handle the headers yourself, but PKWare has published the specification and you can create structs and use Streams.

    There is no need of third party code…but, you do have to approach it in a more traditional, old school manner. They don't exactly unzip themselves.

提交回复
热议问题