Class SyncTextReader
Inheritance
System.Object
System.MarshalByRefObject
System.IO.TextReader
SyncTextReader
Implements
System.IDisposable
Inherited Members
System.IO.TextReader.Null
System.IO.TextReader.Close()
System.IO.TextReader.Dispose()
System.IO.TextReader.Read(System.Span<System.Char>)
System.IO.TextReader.ReadAsync(System.Char[], System.Int32, System.Int32)
System.IO.TextReader.ReadAsync(System.Memory<System.Char>, System.Threading.CancellationToken)
System.IO.TextReader.ReadBlock(System.Span<System.Char>)
System.IO.TextReader.ReadBlockAsync(System.Char[], System.Int32, System.Int32)
System.IO.TextReader.ReadBlockAsync(System.Memory<System.Char>, System.Threading.CancellationToken)
System.IO.TextReader.ReadLineAsync()
System.IO.TextReader.ReadToEndAsync()
System.IO.TextReader.Synchronized(System.IO.TextReader)
System.MarshalByRefObject.GetLifetimeService()
System.MarshalByRefObject.InitializeLifetimeService()
System.MarshalByRefObject.MemberwiseClone(System.Boolean)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Cosmos.System.IO
Assembly: Cosmos.System2.dll
Syntax
public sealed class SyncTextReader : TextReader, IDisposable
Properties
| Improve this Doc View SourceIsStdIn
Declaration
public bool IsStdIn { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
KeyAvailable
Declaration
public bool KeyAvailable { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceDispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
Overrides
System.IO.TextReader.Dispose(System.Boolean)
|
Improve this Doc
View Source
GetSynchronizedTextReader(TextReader)
Declaration
public static SyncTextReader GetSynchronizedTextReader(TextReader reader)
Parameters
Type | Name | Description |
---|---|---|
System.IO.TextReader | reader |
Returns
Type | Description |
---|---|
SyncTextReader |
Peek()
Declaration
public override int Peek()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.IO.TextReader.Peek()
|
Improve this Doc
View Source
Read()
Declaration
public override int Read()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.IO.TextReader.Read()
|
Improve this Doc
View Source
Read(Char[], Int32, Int32)
Declaration
public override int Read(char[] buffer, int index, int count)
Parameters
Type | Name | Description |
---|---|---|
System.Char[] | buffer | |
System.Int32 | index | |
System.Int32 | count |
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.IO.TextReader.Read(System.Char[], System.Int32, System.Int32)
|
Improve this Doc
View Source
ReadBlock(Char[], Int32, Int32)
Declaration
public override int ReadBlock(char[] buffer, int index, int count)
Parameters
Type | Name | Description |
---|---|---|
System.Char[] | buffer | |
System.Int32 | index | |
System.Int32 | count |
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.IO.TextReader.ReadBlock(System.Char[], System.Int32, System.Int32)
|
Improve this Doc
View Source
ReadKey(out Boolean)
Declaration
public ConsoleKeyInfo ReadKey(out bool previouslyProcessed)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | previouslyProcessed |
Returns
Type | Description |
---|---|
System.ConsoleKeyInfo |
ReadLine()
Declaration
public override string ReadLine()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.IO.TextReader.ReadLine()
|
Improve this Doc
View Source
ReadLine(Span<Byte>)
Declaration
public int ReadLine(Span<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
System.Span<System.Byte> | buffer |
Returns
Type | Description |
---|---|
System.Int32 |
ReadToEnd()
Declaration
public override string ReadToEnd()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.IO.TextReader.ReadToEnd()
Implements
System.IDisposable