* Stream.cs, BufferedStream.cs, MemoryStream.cs: in 2.0 override Dispose(bool) rather than Close(). Stream.Dispose() is virtual in 2.0. svn path=/trunk/mcs/; revision=85389
@@ -111,8 +111,15 @@ namespace System.IO {
}
+#if NET_2_0
+ protected override void Dispose (bool disposing)
+ {
+ if (disposed)
+ return;
+#else
public override void Close ()
{
+#endif
if (m_buffer != null)
Flush();
@@ -1,3 +1,9 @@
+2007-09-06 Atsushi Enomoto <[email protected]>
+
+ * Stream.cs, BufferedStream.cs, MemoryStream.cs: in 2.0 override
+ Dispose(bool) rather than Close().
+ Stream.Dispose() is virtual in 2.0.
2007-08-24 Gert Driesen <[email protected]>
* BinaryReader.cs: Fixed line endings.
@@ -215,7 +215,11 @@ namespace System.IO
streamClosed = true;
expandable = false;
@@ -139,11 +139,11 @@ namespace System.IO
// nothing
-#endif
void IDisposable.Dispose ()
Close ();
#if NET_2_0
[Obsolete ("CreateWaitHandle is due for removal. Use \"new ManualResetEvent(false)\" instead.")]