Open jackyshi3333 opened 3 years ago
using (MemoryStream ms = new MemoryStream()) { workbook.Write(ms); workbook.Close(); ms.Flush(); ms.Position = 0; return ms; } 函数返回了ms,但是用的using会自动进行dispose,源码分析会导致不可知行为
要提供可重现的步骤,这样才方便查看问题
using (MemoryStream ms = new MemoryStream()) { workbook.Write(ms); workbook.Close(); ms.Flush(); ms.Position = 0; return ms; } 函数返回了ms,但是用的using会自动进行dispose,源码分析会导致不可知行为
Overview of the problem
Description
Steps to reproduce
Expected behavior
Actual behavior