Tag | Zip Posts

Once again, in this series of posts I look at the parts of the .NET Framework that may seem trivial, but can help improve your code by making it easier to write and maintain. The index of all my past little wonders post can be found here. Today I’m going to look at 5 different ways of combining two sequences together using LINQ extension methods. For the purposes of this discussion, I will split these 5 methods into homogeneous and heterogeneous methods (for lack of better terms). “Homogeneous” combinations ...
Recently, several people have asked me the same question: How do I zip from a memory stream to a memory stream? With the Zip component that comes in IPWorks Zip, you can zip from any kind of file or stream to any kind of stream or file. There is one trick to going from memory stream to memory stream though - and that is keeping the stream open after compressing. By default, the component will automatically close an input stream after it compresses from it. But we added a config setting that you can ...