diff options
Diffstat (limited to 'src/mscorlib/src/System/IO/TextReader.cs')
-rw-r--r-- | src/mscorlib/src/System/IO/TextReader.cs | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/mscorlib/src/System/IO/TextReader.cs b/src/mscorlib/src/System/IO/TextReader.cs index 6cbadfbce5..15ba8fba7d 100644 --- a/src/mscorlib/src/System/IO/TextReader.cs +++ b/src/mscorlib/src/System/IO/TextReader.cs @@ -17,7 +17,6 @@ using System.Text; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; -using System.Security.Permissions; using System.Diagnostics.CodeAnalysis; using System.Diagnostics.Contracts; using System.Threading; @@ -32,8 +31,7 @@ namespace System.IO { // This class is intended for character input, not bytes. // There are methods on the Stream class for reading bytes. [Serializable] - [ComVisible(true)] - public abstract class TextReader : MarshalByRefObject, IDisposable { + internal abstract class TextReader : MarshalByRefObject, IDisposable { public static readonly TextReader Null = new NullTextReader(); @@ -170,7 +168,6 @@ namespace System.IO { } #region Task based Async APIs - [ComVisible(false)] public virtual Task<String> ReadLineAsync() { return Task<String>.Factory.StartNew(state => @@ -180,7 +177,6 @@ namespace System.IO { this, CancellationToken.None, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default); } - [ComVisible(false)] public async virtual Task<String> ReadToEndAsync() { char[] chars = new char[4096]; @@ -193,7 +189,6 @@ namespace System.IO { return sb.ToString(); } - [ComVisible(false)] public virtual Task<int> ReadAsync(char[] buffer, int index, int count) { if (buffer==null) @@ -223,7 +218,6 @@ namespace System.IO { tuple, CancellationToken.None, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default); } - [ComVisible(false)] public virtual Task<int> ReadBlockAsync(char[] buffer, int index, int count) { if (buffer==null) @@ -352,21 +346,18 @@ namespace System.IO { // On SyncTextReader all APIs should run synchronously, even the async ones. // - [ComVisible(false)] [MethodImplAttribute(MethodImplOptions.Synchronized)] public override Task<String> ReadLineAsync() { return Task.FromResult(ReadLine()); } - [ComVisible(false)] [MethodImplAttribute(MethodImplOptions.Synchronized)] public override Task<String> ReadToEndAsync() { return Task.FromResult(ReadToEnd()); } - [ComVisible(false)] [MethodImplAttribute(MethodImplOptions.Synchronized)] public override Task<int> ReadBlockAsync(char[] buffer, int index, int count) { @@ -382,7 +373,6 @@ namespace System.IO { return Task.FromResult(ReadBlock(buffer, index, count)); } - [ComVisible(false)] [MethodImplAttribute(MethodImplOptions.Synchronized)] public override Task<int> ReadAsync(char[] buffer, int index, int count) { |