NpoiMemoryStream.cs 403 B

1234567891011121314151617181920
  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace Ropin.Inspection.Model.Common
  8. {
  9. public class NpoiMemoryStream : MemoryStream
  10. {
  11. public bool AllowClose { get; set; }
  12. public override void Close()
  13. {
  14. if (AllowClose)
  15. base.Close();
  16. }
  17. }
  18. }