Skip to content
This repository was archived by the owner on Sep 13, 2022. It is now read-only.

Commit ab24a5d

Browse files
authored
Merge pull request #1158 from terrajobst/overrides
Add Overrides
2 parents 556ea49 + 547529b commit ab24a5d

17 files changed

+331
-6
lines changed

src/netstandard/ref/System.ComponentModel.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ public event System.ComponentModel.DoWorkEventHandler DoWork { add { } remove {
107107
public event System.ComponentModel.ProgressChangedEventHandler ProgressChanged { add { } remove { } }
108108
public event System.ComponentModel.RunWorkerCompletedEventHandler RunWorkerCompleted { add { } remove { } }
109109
public void CancelAsync() { }
110+
protected override void Dispose(bool disposing) { }
110111
protected virtual void OnDoWork(System.ComponentModel.DoWorkEventArgs e) { }
111112
protected virtual void OnProgressChanged(System.ComponentModel.ProgressChangedEventArgs e) { }
112113
protected virtual void OnRunWorkerCompleted(System.ComponentModel.RunWorkerCompletedEventArgs e) { }
@@ -1951,5 +1952,6 @@ public Win32Exception(string message) { }
19511952
public Win32Exception(string message, System.Exception innerException) { }
19521953
public int NativeErrorCode { get { throw null; } }
19531954
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
1955+
public override string ToString() { throw null; }
19541956
}
19551957
}

src/netstandard/ref/System.IO.Compression.cs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,17 @@ protected override void Dispose(bool disposing) { }
3939
public override int EndRead(System.IAsyncResult asyncResult) { throw null; }
4040
public override void EndWrite(System.IAsyncResult asyncResult) { }
4141
public override void Flush() { }
42+
public override System.Threading.Tasks.Task FlushAsync(System.Threading.CancellationToken cancellationToken) { throw null; }
4243
public override int Read(byte[] buffer, int offset, int count) { throw null; }
44+
public override int Read(System.Span<byte> buffer) { throw null; }
4345
public override System.Threading.Tasks.Task<int> ReadAsync(byte[] buffer, int offset, int count, System.Threading.CancellationToken cancellationToken) { throw null; }
46+
public override System.Threading.Tasks.ValueTask<int> ReadAsync(System.Memory<byte> buffer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
4447
public override long Seek(long offset, System.IO.SeekOrigin origin) { throw null; }
4548
public override void SetLength(long value) { }
4649
public override void Write(byte[] buffer, int offset, int count) { }
50+
public override void Write(System.ReadOnlySpan<byte> buffer) { }
4751
public override System.Threading.Tasks.Task WriteAsync(byte[] buffer, int offset, int count, System.Threading.CancellationToken cancellationToken) { throw null; }
52+
public override System.Threading.Tasks.ValueTask WriteAsync(System.ReadOnlyMemory<byte> buffer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
4853
}
4954
public enum CompressionLevel
5055
{
@@ -71,17 +76,25 @@ public DeflateStream(System.IO.Stream stream, System.IO.Compression.CompressionM
7176
public override long Position { get { throw null; } set { } }
7277
public override System.IAsyncResult BeginRead(byte[] buffer, int offset, int count, System.AsyncCallback asyncCallback, object asyncState) { throw null; }
7378
public override System.IAsyncResult BeginWrite(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState) { throw null; }
79+
public override void CopyTo(System.IO.Stream destination, int bufferSize) { }
80+
public override System.Threading.Tasks.Task CopyToAsync(System.IO.Stream destination, int bufferSize, System.Threading.CancellationToken cancellationToken) { throw null; }
7481
protected override void Dispose(bool disposing) { }
7582
public override System.Threading.Tasks.ValueTask DisposeAsync() { throw null; }
7683
public override int EndRead(System.IAsyncResult asyncResult) { throw null; }
7784
public override void EndWrite(System.IAsyncResult asyncResult) { }
7885
public override void Flush() { }
86+
public override System.Threading.Tasks.Task FlushAsync(System.Threading.CancellationToken cancellationToken) { throw null; }
7987
public override int Read(byte[] array, int offset, int count) { throw null; }
88+
public override int Read(System.Span<byte> buffer) { throw null; }
8089
public override System.Threading.Tasks.Task<int> ReadAsync(byte[] array, int offset, int count, System.Threading.CancellationToken cancellationToken) { throw null; }
90+
public override System.Threading.Tasks.ValueTask<int> ReadAsync(System.Memory<byte> buffer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
91+
public override int ReadByte() { throw null; }
8192
public override long Seek(long offset, System.IO.SeekOrigin origin) { throw null; }
8293
public override void SetLength(long value) { }
8394
public override void Write(byte[] array, int offset, int count) { }
95+
public override void Write(System.ReadOnlySpan<byte> buffer) { }
8496
public override System.Threading.Tasks.Task WriteAsync(byte[] array, int offset, int count, System.Threading.CancellationToken cancellationToken) { throw null; }
97+
public override System.Threading.Tasks.ValueTask WriteAsync(System.ReadOnlyMemory<byte> buffer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
8598
}
8699
public partial class GZipStream : System.IO.Stream
87100
{
@@ -97,17 +110,25 @@ public GZipStream(System.IO.Stream stream, System.IO.Compression.CompressionMode
97110
public override long Position { get { throw null; } set { } }
98111
public override System.IAsyncResult BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState) { throw null; }
99112
public override System.IAsyncResult BeginWrite(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState) { throw null; }
113+
public override void CopyTo(System.IO.Stream destination, int bufferSize) { }
114+
public override System.Threading.Tasks.Task CopyToAsync(System.IO.Stream destination, int bufferSize, System.Threading.CancellationToken cancellationToken) { throw null; }
100115
protected override void Dispose(bool disposing) { }
101116
public override System.Threading.Tasks.ValueTask DisposeAsync() { throw null; }
102117
public override int EndRead(System.IAsyncResult asyncResult) { throw null; }
103118
public override void EndWrite(System.IAsyncResult asyncResult) { }
104119
public override void Flush() { }
120+
public override System.Threading.Tasks.Task FlushAsync(System.Threading.CancellationToken cancellationToken) { throw null; }
105121
public override int Read(byte[] array, int offset, int count) { throw null; }
122+
public override int Read(System.Span<byte> buffer) { throw null; }
106123
public override System.Threading.Tasks.Task<int> ReadAsync(byte[] array, int offset, int count, System.Threading.CancellationToken cancellationToken) { throw null; }
124+
public override System.Threading.Tasks.ValueTask<int> ReadAsync(System.Memory<byte> buffer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
125+
public override int ReadByte() { throw null; }
107126
public override long Seek(long offset, System.IO.SeekOrigin origin) { throw null; }
108127
public override void SetLength(long value) { }
109128
public override void Write(byte[] array, int offset, int count) { }
129+
public override void Write(System.ReadOnlySpan<byte> buffer) { }
110130
public override System.Threading.Tasks.Task WriteAsync(byte[] array, int offset, int count, System.Threading.CancellationToken cancellationToken) { throw null; }
131+
public override System.Threading.Tasks.ValueTask WriteAsync(System.ReadOnlyMemory<byte> buffer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
111132
}
112133
public partial class ZipArchive : System.IDisposable
113134
{

src/netstandard/ref/System.IO.IsolatedStorage.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,20 @@ protected override void Dispose(bool disposing) { }
119119
public override void EndWrite(System.IAsyncResult asyncResult) { }
120120
public override void Flush() { }
121121
public override void Flush(bool flushToDisk) { }
122+
public override System.Threading.Tasks.Task FlushAsync(System.Threading.CancellationToken cancellationToken) { throw null; }
122123
public override void Lock(long position, long length) { }
123124
public override int Read(byte[] buffer, int offset, int count) { throw null; }
125+
public override int Read(System.Span<byte> buffer) { throw null; }
126+
public override System.Threading.Tasks.Task<int> ReadAsync(byte[] buffer, int offset, int count, System.Threading.CancellationToken cancellationToken) { throw null; }
127+
public override System.Threading.Tasks.ValueTask<int> ReadAsync(System.Memory<byte> buffer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
124128
public override int ReadByte() { throw null; }
125129
public override long Seek(long offset, System.IO.SeekOrigin origin) { throw null; }
126130
public override void SetLength(long value) { }
127131
public override void Unlock(long position, long length) { }
128132
public override void Write(byte[] buffer, int offset, int count) { }
133+
public override void Write(System.ReadOnlySpan<byte> buffer) { }
134+
public override System.Threading.Tasks.Task WriteAsync(byte[] buffer, int offset, int count, System.Threading.CancellationToken cancellationToken) { throw null; }
135+
public override System.Threading.Tasks.ValueTask WriteAsync(System.ReadOnlyMemory<byte> buffer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
129136
public override void WriteByte(byte value) { }
130137
}
131138
[System.FlagsAttribute]

src/netstandard/ref/System.IO.Pipes.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,18 @@ public override void Flush() { }
112112
//ACLS public System.IO.Pipes.PipeSecurity GetAccessControl() { throw null; }
113113
protected void InitializeHandle(Microsoft.Win32.SafeHandles.SafePipeHandle handle, bool isExposed, bool isAsync) { }
114114
public override int Read(byte[] buffer, int offset, int count) { throw null; }
115+
public override int Read(System.Span<byte> buffer) { throw null; }
115116
public override System.Threading.Tasks.Task<int> ReadAsync(byte[] buffer, int offset, int count, System.Threading.CancellationToken cancellationToken) { throw null; }
117+
public override System.Threading.Tasks.ValueTask<int> ReadAsync(System.Memory<byte> buffer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
116118
public override int ReadByte() { throw null; }
117119
public override long Seek(long offset, System.IO.SeekOrigin origin) { throw null; }
118120
//ACLS public void SetAccessControl(System.IO.Pipes.PipeSecurity pipeSecurity) { }
119121
public override void SetLength(long value) { }
120122
public void WaitForPipeDrain() { }
121123
public override void Write(byte[] buffer, int offset, int count) { }
124+
public override void Write(System.ReadOnlySpan<byte> buffer) { }
122125
public override System.Threading.Tasks.Task WriteAsync(byte[] buffer, int offset, int count, System.Threading.CancellationToken cancellationToken) { throw null; }
126+
public override System.Threading.Tasks.ValueTask WriteAsync(System.ReadOnlyMemory<byte> buffer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
123127
public override void WriteByte(byte value) { }
124128
}
125129
public delegate void PipeStreamImpersonationWorker();

src/netstandard/ref/System.IO.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,7 @@ public FileStream(string path, System.IO.FileMode mode, System.IO.FileAccess acc
493493
public virtual Microsoft.Win32.SafeHandles.SafeFileHandle SafeFileHandle { get { throw null; } }
494494
public override System.IAsyncResult BeginRead(byte[] array, int offset, int numBytes, System.AsyncCallback callback, object state) { throw null; }
495495
public override System.IAsyncResult BeginWrite(byte[] array, int offset, int numBytes, System.AsyncCallback callback, object state) { throw null; }
496+
public override System.Threading.Tasks.Task CopyToAsync(System.IO.Stream destination, int bufferSize, System.Threading.CancellationToken cancellationToken) { throw null; }
496497
protected override void Dispose(bool disposing) { }
497498
public override System.Threading.Tasks.ValueTask DisposeAsync() { throw null; }
498499
public override int EndRead(System.IAsyncResult asyncResult) { throw null; }
@@ -504,14 +505,18 @@ public virtual void Flush(bool flushToDisk) { }
504505
//ACLS public System.Security.AccessControl.FileSecurity GetAccessControl() { throw null; }
505506
public virtual void Lock(long position, long length) { }
506507
public override int Read(byte[] array, int offset, int count) { throw null; }
508+
public override int Read(System.Span<byte> buffer) { throw null; }
507509
public override System.Threading.Tasks.Task<int> ReadAsync(byte[] buffer, int offset, int count, System.Threading.CancellationToken cancellationToken) { throw null; }
510+
public override System.Threading.Tasks.ValueTask<int> ReadAsync(System.Memory<byte> buffer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
508511
public override int ReadByte() { throw null; }
509512
public override long Seek(long offset, System.IO.SeekOrigin origin) { throw null; }
510513
//ACLS public void SetAccessControl(System.Security.AccessControl.FileSecurity fileSecurity) { }
511514
public override void SetLength(long value) { }
512515
public virtual void Unlock(long position, long length) { }
513516
public override void Write(byte[] array, int offset, int count) { }
517+
public override void Write(System.ReadOnlySpan<byte> buffer) { }
514518
public override System.Threading.Tasks.Task WriteAsync(byte[] buffer, int offset, int count, System.Threading.CancellationToken cancellationToken) { throw null; }
519+
public override System.Threading.Tasks.ValueTask WriteAsync(System.ReadOnlyMemory<byte> buffer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
515520
public override void WriteByte(byte value) { }
516521
}
517522
public partial class FileSystemEventArgs : System.EventArgs
@@ -542,6 +547,7 @@ protected FileSystemInfo(System.Runtime.Serialization.SerializationInfo info, Sy
542547
public abstract void Delete();
543548
public virtual void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
544549
public void Refresh() { }
550+
public override string ToString() { throw null; }
545551
}
546552
[System.ComponentModel.DefaultEventAttribute("Changed")]
547553
public partial class FileSystemWatcher : System.ComponentModel.Component, System.ComponentModel.ISupportInitialize
@@ -856,6 +862,7 @@ public override void Write(string value) { }
856862
public override System.Threading.Tasks.Task WriteAsync(System.ReadOnlyMemory<char> buffer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
857863
public override System.Threading.Tasks.Task WriteAsync(string value) { throw null; }
858864
public override void WriteLine(System.ReadOnlySpan<char> buffer) { }
865+
public override void WriteLine(string value) { }
859866
public override System.Threading.Tasks.Task WriteLineAsync() { throw null; }
860867
public override System.Threading.Tasks.Task WriteLineAsync(char value) { throw null; }
861868
public override System.Threading.Tasks.Task WriteLineAsync(char[] buffer, int index, int count) { throw null; }
@@ -1076,12 +1083,14 @@ protected void Initialize(System.Runtime.InteropServices.SafeBuffer buffer, long
10761083
public override int Read(byte[] buffer, int offset, int count) { throw null; }
10771084
public override int Read(System.Span<byte> destination) { throw null; }
10781085
public override System.Threading.Tasks.Task<int> ReadAsync(byte[] buffer, int offset, int count, System.Threading.CancellationToken cancellationToken) { throw null; }
1086+
public override System.Threading.Tasks.ValueTask<int> ReadAsync(System.Memory<byte> buffer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
10791087
public override int ReadByte() { throw null; }
10801088
public override long Seek(long offset, System.IO.SeekOrigin loc) { throw null; }
10811089
public override void SetLength(long value) { }
10821090
public override void Write(byte[] buffer, int offset, int count) { }
10831091
public override void Write(System.ReadOnlySpan<byte> source) { }
10841092
public override System.Threading.Tasks.Task WriteAsync(byte[] buffer, int offset, int count, System.Threading.CancellationToken cancellationToken) { throw null; }
1093+
public override System.Threading.Tasks.ValueTask WriteAsync(System.ReadOnlyMemory<byte> buffer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
10851094
public override void WriteByte(byte value) { }
10861095
}
10871096
public partial struct WaitForChangedResult

src/netstandard/ref/System.Net.Http.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ public MultipartContent() { }
212212
public MultipartContent(string subtype) { }
213213
public MultipartContent(string subtype, string boundary) { }
214214
public virtual void Add(System.Net.Http.HttpContent content) { }
215+
protected override System.Threading.Tasks.Task<System.IO.Stream> CreateContentReadStreamAsync() { throw null; }
215216
protected override void Dispose(bool disposing) { }
216217
public System.Collections.Generic.IEnumerator<System.Net.Http.HttpContent> GetEnumerator() { throw null; }
217218
protected override System.Threading.Tasks.Task SerializeToStreamAsync(System.IO.Stream stream, System.Net.TransportContext context) { throw null; }
@@ -229,6 +230,7 @@ public void Add(System.Net.Http.HttpContent content, string name, string fileNam
229230
public sealed partial class ReadOnlyMemoryContent : System.Net.Http.HttpContent
230231
{
231232
public ReadOnlyMemoryContent(System.ReadOnlyMemory<byte> content) { }
233+
protected override System.Threading.Tasks.Task<System.IO.Stream> CreateContentReadStreamAsync() { throw null; }
232234
protected override System.Threading.Tasks.Task SerializeToStreamAsync(System.IO.Stream stream, System.Net.TransportContext context) { throw null; }
233235
protected internal override bool TryComputeLength(out long length) { throw null; }
234236
}

0 commit comments

Comments
 (0)