* StreamWriter.cs: Flush the buffer if AutoFlush is set to true.
Fixes bug 63063, patch by Laurent Debacker (debackerl@yahoo.com).
svn path=/trunk/mcs/; revision=32486
+2004-08-18 Dick Porter <dick@ximian.com>
+
+ * StreamWriter.cs: Flush the buffer if AutoFlush is set to true.
+ Fixes bug 63063, patch by Laurent Debacker (debackerl@yahoo.com).
+
2004-08-13 Dick Porter <dick@ximian.com>
* StreamWriter.cs: Allow FileShare.Read access to the underlying
get {\r
return iflush;\r
}\r
- set {\r
- if (DisposedAlready)\r
- throw new ObjectDisposedException("StreamWriter");\r
- iflush = value;\r
- }\r
- }\r
+ set {
+ if (DisposedAlready)
+ throw new ObjectDisposedException("StreamWriter");
+ iflush = value;
+
+ if (iflush) {
+ Flush ();
+ }
+ }
+ }
\r
public virtual Stream BaseStream {\r
get {\r