diff options
author | monojenkins <jo.shields+jenkins@xamarin.com> | 2018-10-24 00:18:52 +0300 |
---|---|---|
committer | monojenkins <jo.shields+jenkins@xamarin.com> | 2018-10-24 00:18:52 +0300 |
commit | 81d4794552a389ea3dab06d6343fa5e3fd7180be (patch) | |
tree | 60ed5ff8a4cfc3f32790082d7282018b7cbc65b8 /profiles | |
parent | 710dff7cf004a2455c68f36204994f18ed9b0bfb (diff) |
Apply changes from https://github.com/mono/mono/pull/11044 to API snapshot
Diffstat (limited to 'profiles')
-rw-r--r-- | profiles/monodroid/mscorlib.cs | 36 | ||||
-rw-r--r-- | profiles/monotouch/mscorlib.cs | 36 | ||||
-rw-r--r-- | profiles/net_4_x/mscorlib.cs | 36 |
3 files changed, 36 insertions, 72 deletions
diff --git a/profiles/monodroid/mscorlib.cs b/profiles/monodroid/mscorlib.cs index 3296197..11b8df6 100644 --- a/profiles/monodroid/mscorlib.cs +++ b/profiles/monodroid/mscorlib.cs @@ -9670,7 +9670,6 @@ namespace System.IO public virtual System.Threading.Tasks.ValueTask WriteAsync(System.ReadOnlyMemory<byte> source, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken)) { throw null; } public virtual void WriteByte(byte value) { } } - [System.Runtime.InteropServices.ComVisibleAttribute(true)] [System.SerializableAttribute] public partial class StreamReader : System.IO.TextReader { @@ -9685,7 +9684,6 @@ namespace System.IO public StreamReader(string path, bool detectEncodingFromByteOrderMarks) { } public StreamReader(string path, System.Text.Encoding encoding) { } public StreamReader(string path, System.Text.Encoding encoding, bool detectEncodingFromByteOrderMarks) { } - [System.Security.SecuritySafeCriticalAttribute] public StreamReader(string path, System.Text.Encoding encoding, bool detectEncodingFromByteOrderMarks, int bufferSize) { } public virtual System.IO.Stream BaseStream { get { throw null; } } public virtual System.Text.Encoding CurrentEncoding { get { throw null; } } @@ -9695,21 +9693,17 @@ namespace System.IO protected override void Dispose(bool disposing) { } public override int Peek() { throw null; } public override int Read() { throw null; } - public override int Read([System.Runtime.InteropServices.In][System.Runtime.InteropServices.Out]char[] buffer, int index, int count) { buffer = default(char[]); throw null; } - [System.Runtime.InteropServices.ComVisibleAttribute(false)] - [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading=true)] + public override int Read(char[] buffer, int index, int count) { throw null; } + public override int Read(System.Span<char> buffer) { throw null; } public override System.Threading.Tasks.Task<int> ReadAsync(char[] buffer, int index, int count) { throw null; } - public override int ReadBlock([System.Runtime.InteropServices.In][System.Runtime.InteropServices.Out]char[] buffer, int index, int count) { buffer = default(char[]); throw null; } - [System.Runtime.InteropServices.ComVisibleAttribute(false)] - [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading=true)] + public override System.Threading.Tasks.ValueTask<int> ReadAsync(System.Memory<char> buffer, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken)) { throw null; } + public override int ReadBlock(char[] buffer, int index, int count) { throw null; } + public override int ReadBlock(System.Span<char> buffer) { throw null; } public override System.Threading.Tasks.Task<int> ReadBlockAsync(char[] buffer, int index, int count) { throw null; } + public override System.Threading.Tasks.ValueTask<int> ReadBlockAsync(System.Memory<char> buffer, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken)) { throw null; } public override string ReadLine() { throw null; } - [System.Runtime.InteropServices.ComVisibleAttribute(false)] - [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading=true)] public override System.Threading.Tasks.Task<string> ReadLineAsync() { throw null; } public override string ReadToEnd() { throw null; } - [System.Runtime.InteropServices.ComVisibleAttribute(false)] - [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading=true)] public override System.Threading.Tasks.Task<string> ReadToEndAsync() { throw null; } } [System.Runtime.InteropServices.ComVisibleAttribute(true)] @@ -9820,7 +9814,6 @@ namespace System.IO [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading=true)] public override System.Threading.Tasks.Task WriteLineAsync(string value) { throw null; } } - [System.Runtime.InteropServices.ComVisibleAttribute(true)] [System.SerializableAttribute] public abstract partial class TextReader : System.MarshalByRefObject, System.IDisposable { @@ -9831,23 +9824,18 @@ namespace System.IO protected virtual void Dispose(bool disposing) { } public virtual int Peek() { throw null; } public virtual int Read() { throw null; } - public virtual int Read([System.Runtime.InteropServices.In][System.Runtime.InteropServices.Out]char[] buffer, int index, int count) { buffer = default(char[]); throw null; } - [System.Runtime.InteropServices.ComVisibleAttribute(false)] - [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading=true)] + public virtual int Read(char[] buffer, int index, int count) { throw null; } + public virtual int Read(System.Span<char> buffer) { throw null; } public virtual System.Threading.Tasks.Task<int> ReadAsync(char[] buffer, int index, int count) { throw null; } - public virtual int ReadBlock([System.Runtime.InteropServices.In][System.Runtime.InteropServices.Out]char[] buffer, int index, int count) { buffer = default(char[]); throw null; } - [System.Runtime.InteropServices.ComVisibleAttribute(false)] - [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading=true)] + public virtual System.Threading.Tasks.ValueTask<int> ReadAsync(System.Memory<char> buffer, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken)) { throw null; } + public virtual int ReadBlock(char[] buffer, int index, int count) { throw null; } + public virtual int ReadBlock(System.Span<char> buffer) { throw null; } public virtual System.Threading.Tasks.Task<int> ReadBlockAsync(char[] buffer, int index, int count) { throw null; } + public virtual System.Threading.Tasks.ValueTask<int> ReadBlockAsync(System.Memory<char> buffer, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken)) { throw null; } public virtual string ReadLine() { throw null; } - [System.Runtime.InteropServices.ComVisibleAttribute(false)] - [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading=true)] public virtual System.Threading.Tasks.Task<string> ReadLineAsync() { throw null; } public virtual string ReadToEnd() { throw null; } - [System.Runtime.InteropServices.ComVisibleAttribute(false)] - [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading=true)] public virtual System.Threading.Tasks.Task<string> ReadToEndAsync() { throw null; } - [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Synchronization=true)] public static System.IO.TextReader Synchronized(System.IO.TextReader reader) { throw null; } } [System.Runtime.InteropServices.ComVisibleAttribute(true)] diff --git a/profiles/monotouch/mscorlib.cs b/profiles/monotouch/mscorlib.cs index c0c1c7f..ee64160 100644 --- a/profiles/monotouch/mscorlib.cs +++ b/profiles/monotouch/mscorlib.cs @@ -9641,7 +9641,6 @@ namespace System.IO public virtual System.Threading.Tasks.ValueTask WriteAsync(System.ReadOnlyMemory<byte> source, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken)) { throw null; } public virtual void WriteByte(byte value) { } } - [System.Runtime.InteropServices.ComVisibleAttribute(true)] [System.SerializableAttribute] public partial class StreamReader : System.IO.TextReader { @@ -9656,7 +9655,6 @@ namespace System.IO public StreamReader(string path, bool detectEncodingFromByteOrderMarks) { } public StreamReader(string path, System.Text.Encoding encoding) { } public StreamReader(string path, System.Text.Encoding encoding, bool detectEncodingFromByteOrderMarks) { } - [System.Security.SecuritySafeCriticalAttribute] public StreamReader(string path, System.Text.Encoding encoding, bool detectEncodingFromByteOrderMarks, int bufferSize) { } public virtual System.IO.Stream BaseStream { get { throw null; } } public virtual System.Text.Encoding CurrentEncoding { get { throw null; } } @@ -9666,21 +9664,17 @@ namespace System.IO protected override void Dispose(bool disposing) { } public override int Peek() { throw null; } public override int Read() { throw null; } - public override int Read([System.Runtime.InteropServices.In][System.Runtime.InteropServices.Out]char[] buffer, int index, int count) { buffer = default(char[]); throw null; } - [System.Runtime.InteropServices.ComVisibleAttribute(false)] - [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading=true)] + public override int Read(char[] buffer, int index, int count) { throw null; } + public override int Read(System.Span<char> buffer) { throw null; } public override System.Threading.Tasks.Task<int> ReadAsync(char[] buffer, int index, int count) { throw null; } - public override int ReadBlock([System.Runtime.InteropServices.In][System.Runtime.InteropServices.Out]char[] buffer, int index, int count) { buffer = default(char[]); throw null; } - [System.Runtime.InteropServices.ComVisibleAttribute(false)] - [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading=true)] + public override System.Threading.Tasks.ValueTask<int> ReadAsync(System.Memory<char> buffer, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken)) { throw null; } + public override int ReadBlock(char[] buffer, int index, int count) { throw null; } + public override int ReadBlock(System.Span<char> buffer) { throw null; } public override System.Threading.Tasks.Task<int> ReadBlockAsync(char[] buffer, int index, int count) { throw null; } + public override System.Threading.Tasks.ValueTask<int> ReadBlockAsync(System.Memory<char> buffer, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken)) { throw null; } public override string ReadLine() { throw null; } - [System.Runtime.InteropServices.ComVisibleAttribute(false)] - [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading=true)] public override System.Threading.Tasks.Task<string> ReadLineAsync() { throw null; } public override string ReadToEnd() { throw null; } - [System.Runtime.InteropServices.ComVisibleAttribute(false)] - [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading=true)] public override System.Threading.Tasks.Task<string> ReadToEndAsync() { throw null; } } [System.Runtime.InteropServices.ComVisibleAttribute(true)] @@ -9791,7 +9785,6 @@ namespace System.IO [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading=true)] public override System.Threading.Tasks.Task WriteLineAsync(string value) { throw null; } } - [System.Runtime.InteropServices.ComVisibleAttribute(true)] [System.SerializableAttribute] public abstract partial class TextReader : System.MarshalByRefObject, System.IDisposable { @@ -9802,23 +9795,18 @@ namespace System.IO protected virtual void Dispose(bool disposing) { } public virtual int Peek() { throw null; } public virtual int Read() { throw null; } - public virtual int Read([System.Runtime.InteropServices.In][System.Runtime.InteropServices.Out]char[] buffer, int index, int count) { buffer = default(char[]); throw null; } - [System.Runtime.InteropServices.ComVisibleAttribute(false)] - [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading=true)] + public virtual int Read(char[] buffer, int index, int count) { throw null; } + public virtual int Read(System.Span<char> buffer) { throw null; } public virtual System.Threading.Tasks.Task<int> ReadAsync(char[] buffer, int index, int count) { throw null; } - public virtual int ReadBlock([System.Runtime.InteropServices.In][System.Runtime.InteropServices.Out]char[] buffer, int index, int count) { buffer = default(char[]); throw null; } - [System.Runtime.InteropServices.ComVisibleAttribute(false)] - [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading=true)] + public virtual System.Threading.Tasks.ValueTask<int> ReadAsync(System.Memory<char> buffer, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken)) { throw null; } + public virtual int ReadBlock(char[] buffer, int index, int count) { throw null; } + public virtual int ReadBlock(System.Span<char> buffer) { throw null; } public virtual System.Threading.Tasks.Task<int> ReadBlockAsync(char[] buffer, int index, int count) { throw null; } + public virtual System.Threading.Tasks.ValueTask<int> ReadBlockAsync(System.Memory<char> buffer, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken)) { throw null; } public virtual string ReadLine() { throw null; } - [System.Runtime.InteropServices.ComVisibleAttribute(false)] - [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading=true)] public virtual System.Threading.Tasks.Task<string> ReadLineAsync() { throw null; } public virtual string ReadToEnd() { throw null; } - [System.Runtime.InteropServices.ComVisibleAttribute(false)] - [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading=true)] public virtual System.Threading.Tasks.Task<string> ReadToEndAsync() { throw null; } - [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Synchronization=true)] public static System.IO.TextReader Synchronized(System.IO.TextReader reader) { throw null; } } [System.Runtime.InteropServices.ComVisibleAttribute(true)] diff --git a/profiles/net_4_x/mscorlib.cs b/profiles/net_4_x/mscorlib.cs index c4541df..2c7628c 100644 --- a/profiles/net_4_x/mscorlib.cs +++ b/profiles/net_4_x/mscorlib.cs @@ -9705,7 +9705,6 @@ namespace System.IO public virtual System.Threading.Tasks.ValueTask WriteAsync(System.ReadOnlyMemory<byte> source, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken)) { throw null; } public virtual void WriteByte(byte value) { } } - [System.Runtime.InteropServices.ComVisibleAttribute(true)] [System.SerializableAttribute] public partial class StreamReader : System.IO.TextReader { @@ -9720,7 +9719,6 @@ namespace System.IO public StreamReader(string path, bool detectEncodingFromByteOrderMarks) { } public StreamReader(string path, System.Text.Encoding encoding) { } public StreamReader(string path, System.Text.Encoding encoding, bool detectEncodingFromByteOrderMarks) { } - [System.Security.SecuritySafeCriticalAttribute] public StreamReader(string path, System.Text.Encoding encoding, bool detectEncodingFromByteOrderMarks, int bufferSize) { } public virtual System.IO.Stream BaseStream { get { throw null; } } public virtual System.Text.Encoding CurrentEncoding { get { throw null; } } @@ -9730,21 +9728,17 @@ namespace System.IO protected override void Dispose(bool disposing) { } public override int Peek() { throw null; } public override int Read() { throw null; } - public override int Read([System.Runtime.InteropServices.In][System.Runtime.InteropServices.Out]char[] buffer, int index, int count) { buffer = default(char[]); throw null; } - [System.Runtime.InteropServices.ComVisibleAttribute(false)] - [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading=true)] + public override int Read(char[] buffer, int index, int count) { throw null; } + public override int Read(System.Span<char> buffer) { throw null; } public override System.Threading.Tasks.Task<int> ReadAsync(char[] buffer, int index, int count) { throw null; } - public override int ReadBlock([System.Runtime.InteropServices.In][System.Runtime.InteropServices.Out]char[] buffer, int index, int count) { buffer = default(char[]); throw null; } - [System.Runtime.InteropServices.ComVisibleAttribute(false)] - [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading=true)] + public override System.Threading.Tasks.ValueTask<int> ReadAsync(System.Memory<char> buffer, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken)) { throw null; } + public override int ReadBlock(char[] buffer, int index, int count) { throw null; } + public override int ReadBlock(System.Span<char> buffer) { throw null; } public override System.Threading.Tasks.Task<int> ReadBlockAsync(char[] buffer, int index, int count) { throw null; } + public override System.Threading.Tasks.ValueTask<int> ReadBlockAsync(System.Memory<char> buffer, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken)) { throw null; } public override string ReadLine() { throw null; } - [System.Runtime.InteropServices.ComVisibleAttribute(false)] - [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading=true)] public override System.Threading.Tasks.Task<string> ReadLineAsync() { throw null; } public override string ReadToEnd() { throw null; } - [System.Runtime.InteropServices.ComVisibleAttribute(false)] - [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading=true)] public override System.Threading.Tasks.Task<string> ReadToEndAsync() { throw null; } } [System.Runtime.InteropServices.ComVisibleAttribute(true)] @@ -9855,7 +9849,6 @@ namespace System.IO [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading=true)] public override System.Threading.Tasks.Task WriteLineAsync(string value) { throw null; } } - [System.Runtime.InteropServices.ComVisibleAttribute(true)] [System.SerializableAttribute] public abstract partial class TextReader : System.MarshalByRefObject, System.IDisposable { @@ -9866,23 +9859,18 @@ namespace System.IO protected virtual void Dispose(bool disposing) { } public virtual int Peek() { throw null; } public virtual int Read() { throw null; } - public virtual int Read([System.Runtime.InteropServices.In][System.Runtime.InteropServices.Out]char[] buffer, int index, int count) { buffer = default(char[]); throw null; } - [System.Runtime.InteropServices.ComVisibleAttribute(false)] - [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading=true)] + public virtual int Read(char[] buffer, int index, int count) { throw null; } + public virtual int Read(System.Span<char> buffer) { throw null; } public virtual System.Threading.Tasks.Task<int> ReadAsync(char[] buffer, int index, int count) { throw null; } - public virtual int ReadBlock([System.Runtime.InteropServices.In][System.Runtime.InteropServices.Out]char[] buffer, int index, int count) { buffer = default(char[]); throw null; } - [System.Runtime.InteropServices.ComVisibleAttribute(false)] - [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading=true)] + public virtual System.Threading.Tasks.ValueTask<int> ReadAsync(System.Memory<char> buffer, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken)) { throw null; } + public virtual int ReadBlock(char[] buffer, int index, int count) { throw null; } + public virtual int ReadBlock(System.Span<char> buffer) { throw null; } public virtual System.Threading.Tasks.Task<int> ReadBlockAsync(char[] buffer, int index, int count) { throw null; } + public virtual System.Threading.Tasks.ValueTask<int> ReadBlockAsync(System.Memory<char> buffer, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken)) { throw null; } public virtual string ReadLine() { throw null; } - [System.Runtime.InteropServices.ComVisibleAttribute(false)] - [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading=true)] public virtual System.Threading.Tasks.Task<string> ReadLineAsync() { throw null; } public virtual string ReadToEnd() { throw null; } - [System.Runtime.InteropServices.ComVisibleAttribute(false)] - [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading=true)] public virtual System.Threading.Tasks.Task<string> ReadToEndAsync() { throw null; } - [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Synchronization=true)] public static System.IO.TextReader Synchronized(System.IO.TextReader reader) { throw null; } } [System.Runtime.InteropServices.ComVisibleAttribute(true)] |