projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
2008-01-15 Stephane Delcroix <sdelcroix@novell.com>
[mono.git]
/
mcs
/
class
/
corlib
/
System.IO
/
UnmanagedMemoryStream.cs
diff --git
a/mcs/class/corlib/System.IO/UnmanagedMemoryStream.cs
b/mcs/class/corlib/System.IO/UnmanagedMemoryStream.cs
index d0eeb22ce8ea6cfd6e26aa2d72712a1dffdca5d8..4342766f6c120bcbe1a175d96648d61e9b0863c3 100644
(file)
--- a/
mcs/class/corlib/System.IO/UnmanagedMemoryStream.cs
+++ b/
mcs/class/corlib/System.IO/UnmanagedMemoryStream.cs
@@
-50,6
+50,8
@@
namespace System.IO
long initial_position;
long current_position;
long initial_position;
long current_position;
+ internal event EventHandler Closed;
+
#region Constructor
protected UnmanagedMemoryStream()
{
#region Constructor
protected UnmanagedMemoryStream()
{
@@
-257,8
+259,11
@@
namespace System.IO
protected override void Dispose (bool disposing)
{
protected override void Dispose (bool disposing)
{
-
+ if (closed)
+ return;
closed = true;
closed = true;
+ if (Closed != null)
+ Closed (this, null);
}
public override void Write (byte[] buffer, int offset, int count)
}
public override void Write (byte[] buffer, int offset, int count)