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:
Diffstat (limited to 'mcs/class/corlib/System.IO/TextReader.cs')
-rw-r--r--mcs/class/corlib/System.IO/TextReader.cs84
1 files changed, 0 insertions, 84 deletions
diff --git a/mcs/class/corlib/System.IO/TextReader.cs b/mcs/class/corlib/System.IO/TextReader.cs
deleted file mode 100644
index 25251b8229c..00000000000
--- a/mcs/class/corlib/System.IO/TextReader.cs
+++ /dev/null
@@ -1,84 +0,0 @@
-//
-// System.IO.TextReader
-//
-// Author: Marcin Szczepanski (marcins@zipworld.com.au)
-//
-// TODO: Implement the Thread Safe stuff
-//
-
-using System;
-
-namespace System.IO {
-
- [MonoTODO] [Serializable]
- public abstract class TextReader : MarshalByRefObject, IDisposable {
-
- protected TextReader() { }
-
- public static readonly TextReader Null;
-
- public virtual void Close()
- {
- Dispose(true);
- }
-
- void System.IDisposable.Dispose()
- {
- Dispose(true);
- }
-
- protected virtual void Dispose( bool disposing )
- {
- return;
- }
-
- public virtual int Peek()
- {
- return -1;
- }
-
- public virtual int Read()
- {
- return -1;
- }
-
- // LAMESPEC: The Beta2 docs say this should be Read( out char[] ...
- // whereas the MS implementation is just Read( char[] ... )
- // Not sure which one is right, we'll see in Beta3 :)
-
- public virtual int Read (char[] buffer, int index, int count)
- {
- int c, i;
-
- for (i = 0; i < count; i++) {
- if ((c = Read ()) == -1)
- return i;
- buffer [index + i] = (char)c;
- }
-
- return i;
- }
-
- public virtual int ReadBlock( char[] buffer, int index, int count )
- {
- return 0;
- }
-
- public virtual string ReadLine()
- {
- return String.Empty;
- }
-
- public virtual string ReadToEnd()
- {
- return String.Empty;
- }
-
- [MonoTODO]
- public static TextReader Synchronized( TextReader reader )
- {
- // TODO: Implement
- return Null;
- }
- }
-}