From b90fae078b7e61c0016d7f845a08dc9760750164 Mon Sep 17 00:00:00 2001 From: Stephen Toub Date: Wed, 16 May 2018 22:11:33 -0400 Subject: [PATCH] Add more missing overrides to refs (dotnet/corefx#29738) Ran /t:GenerateReferenceSource and undid irrelevant changes, though I kept a few files where the changes were trivial (e.g. whitespace) and it seemed better to just accept the change to stay in sync with GenerateReferenceSource. In general I only added missing overrides on non-sealed classes, but when there were already overrides included on sealed classes, I added them back for consistency. Commit migrated from https://github.com/dotnet/corefx/commit/10aa8277de2521fb1e6a5b42d053ad8cc947be81 --- .../ref/Microsoft.Win32.Primitives.cs | 2 +- .../ref/System.ComponentModel.EventBasedAsync.cs | 2 +- .../ref/System.Diagnostics.DiagnosticSource.cs | 3 ++- .../ref/System.IO.Compression.Brotli.cs | 3 ++- .../ref/System.IO.Compression.cs | 12 +++++++++-- .../ref/System.IO.FileSystem.cs | 1 + .../System.Net.Http/ref/System.Net.Http.cs | 15 +++++++------- .../System.Net.Requests/ref/System.Net.Requests.cs | 2 ++ .../System.Net.Security/ref/System.Net.Security.cs | 1 + .../System.Net.Sockets/ref/System.Net.Sockets.cs | 2 ++ .../ref/System.Net.WebSockets.Client.cs | 3 ++- .../ref/System.Net.WebSockets.WebSocketProtocol.cs | 4 ++-- .../ref/System.Security.Cryptography.Csp.cs | 23 +++++++++++++++++----- .../ref/System.Security.Cryptography.Encoding.cs | 1 - .../System.Security.Cryptography.ProtectedData.cs | 1 - 15 files changed, 52 insertions(+), 23 deletions(-) diff --git a/src/libraries/Microsoft.Win32.Primitives/ref/Microsoft.Win32.Primitives.cs b/src/libraries/Microsoft.Win32.Primitives/ref/Microsoft.Win32.Primitives.cs index f4b1d25..2eec976 100644 --- a/src/libraries/Microsoft.Win32.Primitives/ref/Microsoft.Win32.Primitives.cs +++ b/src/libraries/Microsoft.Win32.Primitives/ref/Microsoft.Win32.Primitives.cs @@ -5,7 +5,6 @@ // Changes to this file must follow the http://aka.ms/api-review process. // ------------------------------------------------------------------------------ - namespace System.ComponentModel { public partial class Win32Exception : System.Runtime.InteropServices.ExternalException, System.Runtime.Serialization.ISerializable @@ -17,6 +16,7 @@ namespace System.ComponentModel public Win32Exception(string message, System.Exception innerException) { } protected Win32Exception(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } + public override string ToString() { throw null; } public int NativeErrorCode { get { throw null; } } } } diff --git a/src/libraries/System.ComponentModel.EventBasedAsync/ref/System.ComponentModel.EventBasedAsync.cs b/src/libraries/System.ComponentModel.EventBasedAsync/ref/System.ComponentModel.EventBasedAsync.cs index 19fa71a..f29ffd9 100644 --- a/src/libraries/System.ComponentModel.EventBasedAsync/ref/System.ComponentModel.EventBasedAsync.cs +++ b/src/libraries/System.ComponentModel.EventBasedAsync/ref/System.ComponentModel.EventBasedAsync.cs @@ -5,7 +5,6 @@ // Changes to this file must follow the http://aka.ms/api-review process. // ------------------------------------------------------------------------------ - namespace System.ComponentModel { public partial class AsyncCompletedEventArgs : System.EventArgs @@ -46,6 +45,7 @@ namespace System.ComponentModel public event System.ComponentModel.ProgressChangedEventHandler ProgressChanged { add { } remove { } } public event System.ComponentModel.RunWorkerCompletedEventHandler RunWorkerCompleted { add { } remove { } } public void CancelAsync() { } + protected override void Dispose(bool disposing) { } protected virtual void OnDoWork(System.ComponentModel.DoWorkEventArgs e) { } protected virtual void OnProgressChanged(System.ComponentModel.ProgressChangedEventArgs e) { } protected virtual void OnRunWorkerCompleted(System.ComponentModel.RunWorkerCompletedEventArgs e) { } diff --git a/src/libraries/System.Diagnostics.DiagnosticSource/ref/System.Diagnostics.DiagnosticSource.cs b/src/libraries/System.Diagnostics.DiagnosticSource/ref/System.Diagnostics.DiagnosticSource.cs index 2132579..51b8f08 100644 --- a/src/libraries/System.Diagnostics.DiagnosticSource/ref/System.Diagnostics.DiagnosticSource.cs +++ b/src/libraries/System.Diagnostics.DiagnosticSource/ref/System.Diagnostics.DiagnosticSource.cs @@ -17,8 +17,9 @@ namespace System.Diagnostics { public virtual System.IDisposable Subscribe(System.IObserver> observer) { throw null; } public virtual System.IDisposable Subscribe(System.IObserver> observer, System.Predicate isEnabled) { throw null; } public virtual System.IDisposable Subscribe(System.IObserver> observer, System.Func isEnabled) { throw null; } + public override string ToString() { throw null; } public override void Write(string name, object parameters) { } - } + } public abstract partial class DiagnosticSource { protected DiagnosticSource() { } public abstract bool IsEnabled(string name); diff --git a/src/libraries/System.IO.Compression.Brotli/ref/System.IO.Compression.Brotli.cs b/src/libraries/System.IO.Compression.Brotli/ref/System.IO.Compression.Brotli.cs index 8a76e27..d079825 100644 --- a/src/libraries/System.IO.Compression.Brotli/ref/System.IO.Compression.Brotli.cs +++ b/src/libraries/System.IO.Compression.Brotli/ref/System.IO.Compression.Brotli.cs @@ -39,6 +39,7 @@ namespace System.IO.Compression public override void Flush() { } public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback asyncCallback, object asyncState) { throw null; } public override int EndRead(IAsyncResult asyncResult) { throw null; } + public override System.Threading.Tasks.Task FlushAsync(System.Threading.CancellationToken cancellationToken) { throw null; } public override int Read(byte[] buffer, int offset, int count) { throw null; } public override int Read(System.Span buffer) { throw null; } public override System.Threading.Tasks.Task ReadAsync(byte[] buffer, int offset, int count, System.Threading.CancellationToken cancellationToken) { throw null; } @@ -48,7 +49,7 @@ namespace System.IO.Compression public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback asyncCallback, object asyncState) { throw null; } public override void EndWrite(IAsyncResult asyncResult) { } public override void Write(byte[] buffer, int offset, int count) { } - public override void Write(System.ReadOnlySpan buffer) { throw null; } + public override void Write(System.ReadOnlySpan buffer) { } public override System.Threading.Tasks.Task WriteAsync(byte[] buffer, int offset, int count, System.Threading.CancellationToken cancellationToken) { throw null; } public override System.Threading.Tasks.ValueTask WriteAsync(System.ReadOnlyMemory buffer, System.Threading.CancellationToken cancellationToken = default) { throw null; } } diff --git a/src/libraries/System.IO.Compression/ref/System.IO.Compression.cs b/src/libraries/System.IO.Compression/ref/System.IO.Compression.cs index 323445b..6676bf3 100644 --- a/src/libraries/System.IO.Compression/ref/System.IO.Compression.cs +++ b/src/libraries/System.IO.Compression/ref/System.IO.Compression.cs @@ -5,7 +5,6 @@ // Changes to this file must follow the http://aka.ms/api-review process. // ------------------------------------------------------------------------------ - namespace System.IO.Compression { public enum CompressionLevel @@ -31,18 +30,23 @@ namespace System.IO.Compression public override bool CanWrite { get { throw null; } } public override long Length { get { throw null; } } public override long Position { get { throw null; } set { } } + public override System.Threading.Tasks.Task CopyToAsync(System.IO.Stream destination, int bufferSize, System.Threading.CancellationToken cancellationToken) { throw null; } protected override void Dispose(bool disposing) { } public override void Flush() { } public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback asyncCallback, object asyncState) { throw null; } public override int EndRead(IAsyncResult asyncResult) { throw null; } + public override System.Threading.Tasks.Task FlushAsync(System.Threading.CancellationToken cancellationToken) { throw null; } public override int Read(byte[] array, int offset, int count) { throw null; } + public override int Read(System.Span buffer) { throw null; } public override System.Threading.Tasks.Task ReadAsync(byte[] array, int offset, int count, System.Threading.CancellationToken cancellationToken) { throw null; } - public override System.Threading.Tasks.ValueTask ReadAsync(System.Memory buffer, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public override System.Threading.Tasks.ValueTask ReadAsync(System.Memory buffer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override int ReadByte() { throw null; } public override long Seek(long offset, System.IO.SeekOrigin origin) { throw null; } public override void SetLength(long value) { } public override IAsyncResult BeginWrite(byte[] array, int offset, int count, AsyncCallback asyncCallback, object asyncState) { throw null; } public override void EndWrite(IAsyncResult asyncResult) { } public override void Write(byte[] array, int offset, int count) { } + public override void Write(System.ReadOnlySpan buffer) { } public override System.Threading.Tasks.Task WriteAsync(byte[] array, int offset, int count, System.Threading.CancellationToken cancellationToken) { throw null; } public override System.Threading.Tasks.ValueTask WriteAsync(System.ReadOnlyMemory buffer, System.Threading.CancellationToken cancellationToken = default) { throw null; } } @@ -58,10 +62,14 @@ namespace System.IO.Compression public override bool CanWrite { get { throw null; } } public override long Length { get { throw null; } } public override long Position { get { throw null; } set { } } + public override void CopyTo(System.IO.Stream destination, int bufferSize) { } + public override System.Threading.Tasks.Task CopyToAsync(System.IO.Stream destination, int bufferSize, System.Threading.CancellationToken cancellationToken) { throw null; } protected override void Dispose(bool disposing) { } public override void Flush() { } public override IAsyncResult BeginRead(byte[] array, int offset, int count, AsyncCallback asyncCallback, object asyncState) { throw null; } public override int EndRead(IAsyncResult asyncResult) { throw null; } + public override System.Threading.Tasks.Task FlushAsync(System.Threading.CancellationToken cancellationToken) { throw null; } + public override int ReadByte() { throw null; } public override int Read(byte[] array, int offset, int count) { throw null; } public override int Read(System.Span buffer) { throw null; } public override System.Threading.Tasks.Task ReadAsync(byte[] array, int offset, int count, System.Threading.CancellationToken cancellationToken) { throw null; } diff --git a/src/libraries/System.IO.FileSystem/ref/System.IO.FileSystem.cs b/src/libraries/System.IO.FileSystem/ref/System.IO.FileSystem.cs index 8f0ee01..868fac5 100644 --- a/src/libraries/System.IO.FileSystem/ref/System.IO.FileSystem.cs +++ b/src/libraries/System.IO.FileSystem/ref/System.IO.FileSystem.cs @@ -217,6 +217,7 @@ namespace System.IO public abstract string Name { get; } public abstract void Delete(); public void Refresh() { } + public override string ToString() { throw null; } } public enum SearchOption { diff --git a/src/libraries/System.Net.Http/ref/System.Net.Http.cs b/src/libraries/System.Net.Http/ref/System.Net.Http.cs index 02cb8fa..750f4b3 100644 --- a/src/libraries/System.Net.Http/ref/System.Net.Http.cs +++ b/src/libraries/System.Net.Http/ref/System.Net.Http.cs @@ -5,7 +5,6 @@ // Changes to this file must follow the http://aka.ms/api-review process. // ------------------------------------------------------------------------------ - namespace System.Net.Http { public partial class ByteArrayContent : System.Net.Http.HttpContent @@ -216,6 +215,7 @@ namespace System.Net.Http public MultipartContent(string subtype) { } public MultipartContent(string subtype, string boundary) { } public virtual void Add(System.Net.Http.HttpContent content) { } + protected override System.Threading.Tasks.Task CreateContentReadStreamAsync() { throw null; } protected override void Dispose(bool disposing) { } public System.Collections.Generic.IEnumerator GetEnumerator() { throw null; } protected override System.Threading.Tasks.Task SerializeToStreamAsync(System.IO.Stream stream, System.Net.TransportContext context) { throw null; } @@ -233,27 +233,28 @@ namespace System.Net.Http public sealed partial class ReadOnlyMemoryContent : System.Net.Http.HttpContent { public ReadOnlyMemoryContent(System.ReadOnlyMemory content) { } - protected override System.Threading.Tasks.Task SerializeToStreamAsync(System.IO.Stream stream, System.Net.TransportContext context) => throw null; - protected internal override bool TryComputeLength(out long length) => throw null; + protected override System.Threading.Tasks.Task CreateContentReadStreamAsync() { throw null; } + protected override System.Threading.Tasks.Task SerializeToStreamAsync(System.IO.Stream stream, System.Net.TransportContext context) { throw null; } + protected internal override bool TryComputeLength(out long length) { throw null; } } #if !uap - public sealed class SocketsHttpHandler : HttpMessageHandler + public sealed partial class SocketsHttpHandler : System.Net.Http.HttpMessageHandler { public SocketsHttpHandler() { } public bool AllowAutoRedirect { get { throw null; } set { } } public System.Net.DecompressionMethods AutomaticDecompression { get { throw null; } set { } } - public System.TimeSpan ConnectTimeout { get; set; } + public System.TimeSpan ConnectTimeout { get { throw null; } set { } } public System.Net.CookieContainer CookieContainer { get { throw null; } set { } } public System.Net.ICredentials Credentials { get { throw null; } set { } } public System.Net.ICredentials DefaultProxyCredentials { get { throw null; } set { } } - public System.TimeSpan Expect100ContinueTimeout { get; set; } + public System.TimeSpan Expect100ContinueTimeout { get { throw null; } set { } } public int MaxAutomaticRedirections { get { throw null; } set { } } public int MaxConnectionsPerServer { get { throw null; } set { } } public int MaxResponseDrainSize { get { throw null; } set { } } public int MaxResponseHeadersLength { get { throw null; } set { } } - public bool PreAuthenticate { get { throw null; } set { } } public System.TimeSpan PooledConnectionIdleTimeout { get { throw null; } set { } } public System.TimeSpan PooledConnectionLifetime { get { throw null; } set { } } + public bool PreAuthenticate { get { throw null; } set { } } public System.Collections.Generic.IDictionary Properties { get { throw null; } } public System.Net.IWebProxy Proxy { get { throw null; } set { } } public System.TimeSpan ResponseDrainTimeout { get { throw null; } set { } } diff --git a/src/libraries/System.Net.Requests/ref/System.Net.Requests.cs b/src/libraries/System.Net.Requests/ref/System.Net.Requests.cs index f2f2025..6b83c55 100644 --- a/src/libraries/System.Net.Requests/ref/System.Net.Requests.cs +++ b/src/libraries/System.Net.Requests/ref/System.Net.Requests.cs @@ -55,7 +55,9 @@ namespace System.Net public override System.IO.Stream EndGetRequestStream(System.IAsyncResult asyncResult) { throw null; } public override System.Net.WebResponse EndGetResponse(System.IAsyncResult asyncResult) { throw null; } public override System.IO.Stream GetRequestStream() { throw null; } + public override System.Threading.Tasks.Task GetRequestStreamAsync() { throw null; } public override System.Net.WebResponse GetResponse() { throw null; } + public override System.Threading.Tasks.Task GetResponseAsync() { throw null; } void System.Runtime.Serialization.ISerializable.GetObjectData(System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext) { } protected override void GetObjectData(System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext) { } } diff --git a/src/libraries/System.Net.Security/ref/System.Net.Security.cs b/src/libraries/System.Net.Security/ref/System.Net.Security.cs index 403259d..b41827e 100644 --- a/src/libraries/System.Net.Security/ref/System.Net.Security.cs +++ b/src/libraries/System.Net.Security/ref/System.Net.Security.cs @@ -206,6 +206,7 @@ namespace System.Net.Security public override void Flush() { } public override System.Threading.Tasks.Task FlushAsync(System.Threading.CancellationToken cancellationToken) { throw null; } public override int Read(byte[] buffer, int offset, int count) { throw null; } + public override int ReadByte() { throw null; } public override System.Threading.Tasks.Task ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken) { throw null; } public override System.Threading.Tasks.ValueTask ReadAsync(System.Memory buffer, CancellationToken cancellationToken = default) { throw null; } public override long Seek(long offset, System.IO.SeekOrigin origin) { throw null; } diff --git a/src/libraries/System.Net.Sockets/ref/System.Net.Sockets.cs b/src/libraries/System.Net.Sockets/ref/System.Net.Sockets.cs index 0cbf93a..b0e4430 100644 --- a/src/libraries/System.Net.Sockets/ref/System.Net.Sockets.cs +++ b/src/libraries/System.Net.Sockets/ref/System.Net.Sockets.cs @@ -111,12 +111,14 @@ namespace System.Net.Sockets public override void EndWrite(IAsyncResult asyncResult) { } public override void Flush() { } public override System.Threading.Tasks.Task FlushAsync(System.Threading.CancellationToken cancellationToken) { throw null; } + public override int ReadByte() { throw null; } public override int Read(byte[] buffer, int offset, int size) { throw null; } public override System.Threading.Tasks.Task ReadAsync(byte[] buffer, int offset, int size, System.Threading.CancellationToken cancellationToken) { throw null; } public override long Seek(long offset, System.IO.SeekOrigin origin) { throw null; } public override void SetLength(long value) { } public override void Write(byte[] buffer, int offset, int size) { } public override System.Threading.Tasks.Task WriteAsync(byte[] buffer, int offset, int size, System.Threading.CancellationToken cancellationToken) { throw null; } + public override void WriteByte(byte value) { } } public enum ProtocolFamily { diff --git a/src/libraries/System.Net.WebSockets.Client/ref/System.Net.WebSockets.Client.cs b/src/libraries/System.Net.WebSockets.Client/ref/System.Net.WebSockets.Client.cs index 7dfcff2..6b13526 100644 --- a/src/libraries/System.Net.WebSockets.Client/ref/System.Net.WebSockets.Client.cs +++ b/src/libraries/System.Net.WebSockets.Client/ref/System.Net.WebSockets.Client.cs @@ -5,7 +5,6 @@ // Changes to this file must follow the http://aka.ms/api-review process. // ------------------------------------------------------------------------------ - namespace System.Net.WebSockets { public sealed partial class ClientWebSocket : System.Net.WebSockets.WebSocket @@ -22,7 +21,9 @@ namespace System.Net.WebSockets public System.Threading.Tasks.Task ConnectAsync(System.Uri uri, System.Threading.CancellationToken cancellationToken) { throw null; } public override void Dispose() { } public override System.Threading.Tasks.Task ReceiveAsync(System.ArraySegment buffer, System.Threading.CancellationToken cancellationToken) { throw null; } + public override System.Threading.Tasks.ValueTask ReceiveAsync(System.Memory buffer, System.Threading.CancellationToken cancellationToken) { throw null; } public override System.Threading.Tasks.Task SendAsync(System.ArraySegment buffer, System.Net.WebSockets.WebSocketMessageType messageType, bool endOfMessage, System.Threading.CancellationToken cancellationToken) { throw null; } + public override System.Threading.Tasks.ValueTask SendAsync(System.ReadOnlyMemory buffer, System.Net.WebSockets.WebSocketMessageType messageType, bool endOfMessage, System.Threading.CancellationToken cancellationToken) { throw null; } } public sealed partial class ClientWebSocketOptions { diff --git a/src/libraries/System.Net.WebSockets.WebSocketProtocol/ref/System.Net.WebSockets.WebSocketProtocol.cs b/src/libraries/System.Net.WebSockets.WebSocketProtocol/ref/System.Net.WebSockets.WebSocketProtocol.cs index 8750936..9cbbec9 100644 --- a/src/libraries/System.Net.WebSockets.WebSocketProtocol/ref/System.Net.WebSockets.WebSocketProtocol.cs +++ b/src/libraries/System.Net.WebSockets.WebSocketProtocol/ref/System.Net.WebSockets.WebSocketProtocol.cs @@ -7,8 +7,8 @@ namespace System.Net.WebSockets { - public static class WebSocketProtocol + public static partial class WebSocketProtocol { - public static WebSocket CreateFromStream(System.IO.Stream stream, bool isServer, string subProtocol, System.TimeSpan keepAliveInterval) { throw null; } + public static System.Net.WebSockets.WebSocket CreateFromStream(System.IO.Stream stream, bool isServer, string subProtocol, System.TimeSpan keepAliveInterval) { throw null; } } } diff --git a/src/libraries/System.Security.Cryptography.Csp/ref/System.Security.Cryptography.Csp.cs b/src/libraries/System.Security.Cryptography.Csp/ref/System.Security.Cryptography.Csp.cs index 956737d..c701483 100644 --- a/src/libraries/System.Security.Cryptography.Csp/ref/System.Security.Cryptography.Csp.cs +++ b/src/libraries/System.Security.Cryptography.Csp/ref/System.Security.Cryptography.Csp.cs @@ -123,10 +123,12 @@ namespace System.Security.Cryptography public sealed partial class MD5CryptoServiceProvider : System.Security.Cryptography.MD5 { public MD5CryptoServiceProvider() { } - protected sealed override void Dispose(bool disposing) { } + protected override void Dispose(bool disposing) { } protected override void HashCore(byte[] array, int ibStart, int cbSize) { } + protected override void HashCore(System.ReadOnlySpan source) { } protected override byte[] HashFinal() { throw null; } public override void Initialize() { } + protected override bool TryHashFinal(System.Span destination, out int bytesWritten) { throw null; } } public enum KeyNumber { @@ -175,7 +177,10 @@ namespace System.Security.Cryptography public RNGCryptoServiceProvider(string str) { } protected override void Dispose(bool disposing) { } public override void GetBytes(byte[] data) { } + public override void GetBytes(byte[] data, int offset, int count) { } + public override void GetBytes(System.Span data) { } public override void GetNonZeroBytes(byte[] data) { } + public override void GetNonZeroBytes(System.Span data) { } } public sealed partial class RSACryptoServiceProvider : System.Security.Cryptography.RSA, System.Security.Cryptography.ICspAsymmetricAlgorithm { @@ -217,37 +222,45 @@ namespace System.Security.Cryptography public sealed partial class SHA1CryptoServiceProvider : System.Security.Cryptography.SHA1 { public SHA1CryptoServiceProvider() { } - protected sealed override void Dispose(bool disposing) { } + protected override void Dispose(bool disposing) { } protected override void HashCore(byte[] array, int ibStart, int cbSize) { } + protected override void HashCore(System.ReadOnlySpan source) { } protected override byte[] HashFinal() { throw null; } public override void Initialize() { } + protected override bool TryHashFinal(System.Span destination, out int bytesWritten) { throw null; } } [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] public sealed partial class SHA256CryptoServiceProvider : System.Security.Cryptography.SHA256 { public SHA256CryptoServiceProvider() { } - protected sealed override void Dispose(bool disposing) { } + protected override void Dispose(bool disposing) { } protected override void HashCore(byte[] array, int ibStart, int cbSize) { } + protected override void HashCore(System.ReadOnlySpan source) { } protected override byte[] HashFinal() { throw null; } public override void Initialize() { } + protected override bool TryHashFinal(System.Span destination, out int bytesWritten) { throw null; } } [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] public sealed partial class SHA384CryptoServiceProvider : System.Security.Cryptography.SHA384 { public SHA384CryptoServiceProvider() { } - protected sealed override void Dispose(bool disposing) { } + protected override void Dispose(bool disposing) { } protected override void HashCore(byte[] array, int ibStart, int cbSize) { } + protected override void HashCore(System.ReadOnlySpan source) { } protected override byte[] HashFinal() { throw null; } public override void Initialize() { } + protected override bool TryHashFinal(System.Span destination, out int bytesWritten) { throw null; } } [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] public sealed partial class SHA512CryptoServiceProvider : System.Security.Cryptography.SHA512 { public SHA512CryptoServiceProvider() { } - protected sealed override void Dispose(bool disposing) { } + protected override void Dispose(bool disposing) { } protected override void HashCore(byte[] array, int ibStart, int cbSize) { } + protected override void HashCore(System.ReadOnlySpan source) { } protected override byte[] HashFinal() { throw null; } public override void Initialize() { } + protected override bool TryHashFinal(System.Span destination, out int bytesWritten) { throw null; } } [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] public sealed partial class TripleDESCryptoServiceProvider : System.Security.Cryptography.TripleDES diff --git a/src/libraries/System.Security.Cryptography.Encoding/ref/System.Security.Cryptography.Encoding.cs b/src/libraries/System.Security.Cryptography.Encoding/ref/System.Security.Cryptography.Encoding.cs index e543ba9..6cc3132 100644 --- a/src/libraries/System.Security.Cryptography.Encoding/ref/System.Security.Cryptography.Encoding.cs +++ b/src/libraries/System.Security.Cryptography.Encoding/ref/System.Security.Cryptography.Encoding.cs @@ -5,7 +5,6 @@ // Changes to this file must follow the http://aka.ms/api-review process. // ------------------------------------------------------------------------------ - namespace System.Security.Cryptography { public partial class AsnEncodedData diff --git a/src/libraries/System.Security.Cryptography.ProtectedData/ref/System.Security.Cryptography.ProtectedData.cs b/src/libraries/System.Security.Cryptography.ProtectedData/ref/System.Security.Cryptography.ProtectedData.cs index 6353746..b6f22da 100644 --- a/src/libraries/System.Security.Cryptography.ProtectedData/ref/System.Security.Cryptography.ProtectedData.cs +++ b/src/libraries/System.Security.Cryptography.ProtectedData/ref/System.Security.Cryptography.ProtectedData.cs @@ -5,7 +5,6 @@ // Changes to this file must follow the http://aka.ms/api-review process. // ------------------------------------------------------------------------------ - namespace System.Security.Cryptography { public enum DataProtectionScope -- 2.7.4