Why? C# Error after Refactor: 'The stream is invalid or no corresponding signature was found.'
问题 This is a follow-on question from here: Decompress Stream to String using SevenZipSharp. The following code works in the sense that it takes a string and successfully compresses and decompresses it. using System; using System.IO; using SevenZip; namespace _7ZipWrapper { public class ProgramOriginal { public static void Main() // This should be broken into separate methods { // Setup Input String var strToCompress = "This String"; // will pass as parameter var memStreamToCompress = new