Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>2002-08-23 20:56:08 +0400
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>2002-08-23 20:56:08 +0400
commit2920d505fb10e92bb99cae024fae079c3421b655 (patch)
treec7cc79fd0f9bf96251ab89fec183a569f3c220f6 /mcs/class/corlib/System.IO/StreamWriter.cs
parent426dcfcabef34d897beff1a06d971d0f93c5cf10 (diff)
2002-08-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* System/Double.cs: implemented TryParse. * System/Math.cs: PowImpl is now private. * System/MissingFieldException.cs: implemented Message. * System/RuntimeMethodHandle.cs: stubbed GetFunctionPointer. * System/_AppDomain.cs: Uncommented ToString. * System.IO/FileLoadException.cs: implemented ToString. * System.IO/StreamWriter.cs: added Null field and implemented Write (char) and Write (char []). svn path=/trunk/mcs/; revision=6955
Diffstat (limited to 'mcs/class/corlib/System.IO/StreamWriter.cs')
-rw-r--r--mcs/class/corlib/System.IO/StreamWriter.cs12
1 files changed, 11 insertions, 1 deletions
diff --git a/mcs/class/corlib/System.IO/StreamWriter.cs b/mcs/class/corlib/System.IO/StreamWriter.cs
index 407538846e7..0d1a42dfee0 100644
--- a/mcs/class/corlib/System.IO/StreamWriter.cs
+++ b/mcs/class/corlib/System.IO/StreamWriter.cs
@@ -32,7 +32,7 @@ namespace System.IO {
private bool DisposedAlready = false;
- // new public static readonly StreamWriter Null;
+ public new static readonly StreamWriter Null = new StreamWriter (Stream.Null, Encoding.UTF8, 0);
public StreamWriter (Stream stream)
: this (stream, Encoding.UTF8, DefaultBufferSize) {}
@@ -187,6 +187,16 @@ namespace System.IO {
}
}
+ public override void Write (char value)
+ {
+ Write (new char [] {value}, 0, 1);
+ }
+
+ public override void Write (char [] value)
+ {
+ Write (value, 0, value.Length);
+ }
+
public override void Write(string value) {
if (DisposedAlready)
throw new ObjectDisposedException("StreamWriter");