|
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
namespace ZipRenderer
{
class UnclosableMemoryStream: MemoryStream
{
private bool allowClose;
public bool AllowClose
{
get { return allowClose; }
set { allowClose = value; }
}
public override void Close()
{
if (AllowClose)
base.Close();
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I am a database-oriented software developer .. or an application-oriented database engineer, depending on the situation.
In past 7 or so years I have created stuff ranging from Windows Services to WPF, from GDI+ to SSIS packages and SSRS extensions.
My goal is to improve life and work for others - which should be the ultimate goal of any good software project.
And my articles on Codeproject can hopefully make you do the same.