liukuo362573 / YiShaAdmin

基于 .NET Core MVC 的权限管理系统,代码易读易懂、界面简洁美观
MIT License
2.45k stars 884 forks source link

ExcelHelper bug #93

Open jackyshi3333 opened 3 years ago

jackyshi3333 commented 3 years ago

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

liukuo362573 commented 3 years ago

要提供可重现的步骤,这样才方便查看问题