CSLA.NET 6.0.0
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
CslaNonClosingBinaryWriter.cs
Go to the documentation of this file.
1using System.IO;
2
4{
10 public class CslaNonClosingBinaryWriter : BinaryWriter
11 {
16 public CslaNonClosingBinaryWriter(Stream stream)
17 : base(stream)
18 {
19
20 }
26 protected override void Dispose(bool disposing)
27 {
28 // do nothing to keep the stream from closing
29 }
30 }
31}
This class is used to get around the issue in .NET framework, where underlying stream is closed by a ...
CslaNonClosingBinaryWriter(Stream stream)
New instance of CslaNonClosingBinaryWriter
override void Dispose(bool disposing)
Overwrite the Dispose method of the base class in order to keep the stream open