初始化CRICS
This commit is contained in:
27
Common/NPOIMemoryStream.cs
Normal file
27
Common/NPOIMemoryStream.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.IO;
|
||||
|
||||
namespace Common
|
||||
{
|
||||
public class NPOIMemoryStream : MemoryStream
|
||||
{
|
||||
public NPOIMemoryStream()
|
||||
{
|
||||
AllowClose = true;
|
||||
}
|
||||
|
||||
public bool AllowClose { get; set; }
|
||||
|
||||
public override void Close()
|
||||
{
|
||||
if (AllowClose)
|
||||
{
|
||||
base.Close();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user