Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Correcting Mismatch between ref and src #39741

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@ public static partial class LoggingServiceCollectionExtensions
}
namespace Microsoft.Extensions.Logging
{
[System.FlagsAttribute]
public enum ActivityTrackingOptions
{
None = 0,
SpanId = 1,
TraceId = 2,
ParentId = 4,
TraceState = 8,
TraceFlags = 16,
}
public static partial class FilterLoggingBuilderExtensions
{
public static Microsoft.Extensions.Logging.ILoggingBuilder AddFilter(this Microsoft.Extensions.Logging.ILoggingBuilder builder, System.Func<Microsoft.Extensions.Logging.LogLevel, bool> levelFilter) { throw null; }
Expand All @@ -39,21 +49,6 @@ public partial interface ILoggingBuilder
{
Microsoft.Extensions.DependencyInjection.IServiceCollection Services { get; }
}
[System.Flags]
public enum ActivityTrackingOptions
{
None = 0x0000,
SpanId = 0x0001,
TraceId = 0x0002,
ParentId = 0x0004,
TraceState = 0x0008,
TraceFlags = 0x0010
}
public class LoggerFactoryOptions
{
public LoggerFactoryOptions() { }
public ActivityTrackingOptions ActivityTrackingOptions { get {throw null; } set { throw null; } }
}
public partial class LoggerFactory : Microsoft.Extensions.Logging.ILoggerFactory, System.IDisposable
{
public LoggerFactory() { }
Expand All @@ -67,6 +62,11 @@ public void AddProvider(Microsoft.Extensions.Logging.ILoggerProvider provider) {
public Microsoft.Extensions.Logging.ILogger CreateLogger(string categoryName) { throw null; }
public void Dispose() { }
}
public partial class LoggerFactoryOptions
{
public LoggerFactoryOptions() { }
public Microsoft.Extensions.Logging.ActivityTrackingOptions ActivityTrackingOptions { get { throw null; } set { } }
}
public partial class LoggerFilterOptions
{
public LoggerFilterOptions() { }
Expand All @@ -87,8 +87,8 @@ public static partial class LoggingBuilderExtensions
{
public static Microsoft.Extensions.Logging.ILoggingBuilder AddProvider(this Microsoft.Extensions.Logging.ILoggingBuilder builder, Microsoft.Extensions.Logging.ILoggerProvider provider) { throw null; }
public static Microsoft.Extensions.Logging.ILoggingBuilder ClearProviders(this Microsoft.Extensions.Logging.ILoggingBuilder builder) { throw null; }
public static Microsoft.Extensions.Logging.ILoggingBuilder SetMinimumLevel(this Microsoft.Extensions.Logging.ILoggingBuilder builder, Microsoft.Extensions.Logging.LogLevel level) { throw null; }
public static Microsoft.Extensions.Logging.ILoggingBuilder Configure(this Microsoft.Extensions.Logging.ILoggingBuilder builder, System.Action<Microsoft.Extensions.Logging.LoggerFactoryOptions> action) { throw null; }
public static Microsoft.Extensions.Logging.ILoggingBuilder SetMinimumLevel(this Microsoft.Extensions.Logging.ILoggingBuilder builder, Microsoft.Extensions.Logging.LogLevel level) { throw null; }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Class, AllowMultiple=false, Inherited=false)]
public partial class ProviderAliasAttribute : System.Attribute
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ namespace Microsoft.Win32.SafeHandles
public sealed partial class SafeRegistryHandle : Microsoft.Win32.SafeHandles.SafeHandleZeroOrMinusOneIsInvalid
{
public SafeRegistryHandle(System.IntPtr preexistingHandle, bool ownsHandle) : base (default(bool)) { }
public override bool IsInvalid { get { throw null; } }
protected override bool ReleaseHandle() { throw null; }
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/libraries/System.CodeDom/ref/System.CodeDom.cs
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,7 @@ protected virtual void GenerateSnippetCompileUnit(System.CodeDom.CodeSnippetComp
protected abstract void GenerateSnippetMember(System.CodeDom.CodeSnippetTypeMember e);
protected virtual void GenerateSnippetStatement(System.CodeDom.CodeSnippetStatement e) { }
protected void GenerateStatement(System.CodeDom.CodeStatement e) { }
protected void GenerateStatements(System.CodeDom.CodeStatementCollection stms) { }
protected void GenerateStatements(System.CodeDom.CodeStatementCollection stmts) { }
protected abstract void GenerateThisReferenceExpression(System.CodeDom.CodeThisReferenceExpression e);
protected abstract void GenerateThrowExceptionStatement(System.CodeDom.CodeThrowExceptionStatement e);
protected abstract void GenerateTryCatchFinallyStatement(System.CodeDom.CodeTryCatchFinallyStatement e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ public sealed partial class ParenthesizePropertyNameAttribute : System.Attribute
public ParenthesizePropertyNameAttribute() { }
public ParenthesizePropertyNameAttribute(bool needParenthesis) { }
public bool NeedParenthesis { get { throw null; } }
public override bool Equals(object? o) { throw null; }
public override bool Equals(object? obj) { throw null; }
public override int GetHashCode() { throw null; }
public override bool IsDefaultAttribute() { throw null; }
}
Expand Down Expand Up @@ -291,7 +291,7 @@ public sealed partial class RefreshPropertiesAttribute : System.Attribute
public static readonly System.ComponentModel.RefreshPropertiesAttribute Repaint;
public RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties refresh) { }
public System.ComponentModel.RefreshProperties RefreshProperties { get { throw null; } }
public override bool Equals(object? value) { throw null; }
public override bool Equals(object? obj) { throw null; }
public override int GetHashCode() { throw null; }
public override bool IsDefaultAttribute() { throw null; }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ public partial class StackFrame
{
public const int OFFSET_UNKNOWN = -1;
public StackFrame() { }
public StackFrame(bool fNeedFileInfo) { }
public StackFrame(bool needFileInfo) { }
public StackFrame(int skipFrames) { }
public StackFrame(int skipFrames, bool fNeedFileInfo) { }
public StackFrame(int skipFrames, bool needFileInfo) { }
public StackFrame(string? fileName, int lineNumber) { }
public StackFrame(string? fileName, int lineNumber, int colNumber) { }
public virtual int GetFileColumnNumber() { throw null; }
Expand Down
13 changes: 6 additions & 7 deletions src/libraries/System.Drawing.Common/ref/System.Drawing.Common.cs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,6 @@ public sealed partial class BufferedGraphics : System.IDisposable
internal BufferedGraphics() { }
public System.Drawing.Graphics Graphics { get { throw null; } }
public void Dispose() { }
~BufferedGraphics() { }
public void Render() { }
public void Render(System.Drawing.Graphics? target) { }
public void Render(System.IntPtr targetDC) { }
Expand Down Expand Up @@ -657,7 +656,7 @@ public void Dispose() { }
~Icon() { }
public static System.Drawing.Icon FromHandle(System.IntPtr handle) { throw null; }
public void Save(System.IO.Stream outputStream) { }
void System.Runtime.Serialization.ISerializable.GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
void System.Runtime.Serialization.ISerializable.GetObjectData(System.Runtime.Serialization.SerializationInfo si, System.Runtime.Serialization.StreamingContext context) { }
public System.Drawing.Bitmap ToBitmap() { throw null; }
public override string ToString() { throw null; }
}
Expand Down Expand Up @@ -731,7 +730,7 @@ public void SaveAdd(System.Drawing.Image image, System.Drawing.Imaging.EncoderPa
public void SaveAdd(System.Drawing.Imaging.EncoderParameters? encoderParams) { }
public int SelectActiveFrame(System.Drawing.Imaging.FrameDimension dimension, int frameIndex) { throw null; }
public void SetPropertyItem(System.Drawing.Imaging.PropertyItem propitem) { }
void System.Runtime.Serialization.ISerializable.GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
void System.Runtime.Serialization.ISerializable.GetObjectData(System.Runtime.Serialization.SerializationInfo si, System.Runtime.Serialization.StreamingContext context) { }
public delegate bool GetThumbnailImageAbort();
}
public sealed partial class ImageAnimator
Expand Down Expand Up @@ -2096,17 +2095,17 @@ public sealed partial class Encoder
{
public static readonly System.Drawing.Imaging.Encoder ChrominanceTable;
public static readonly System.Drawing.Imaging.Encoder ColorDepth;
public static readonly System.Drawing.Imaging.Encoder ColorSpace;
public static readonly System.Drawing.Imaging.Encoder Compression;
public static readonly System.Drawing.Imaging.Encoder ImageItems;
public static readonly System.Drawing.Imaging.Encoder LuminanceTable;
public static readonly System.Drawing.Imaging.Encoder Quality;
public static readonly System.Drawing.Imaging.Encoder RenderMethod;
public static readonly System.Drawing.Imaging.Encoder SaveAsCmyk;
public static readonly System.Drawing.Imaging.Encoder SaveFlag;
public static readonly System.Drawing.Imaging.Encoder ScanMethod;
public static readonly System.Drawing.Imaging.Encoder Transformation;
public static readonly System.Drawing.Imaging.Encoder Version;
public static readonly System.Drawing.Imaging.Encoder ColorSpace;
public static readonly System.Drawing.Imaging.Encoder ImageItems;
public static readonly System.Drawing.Imaging.Encoder SaveAsCmyk;
public Encoder(System.Guid guid) { }
public System.Guid Guid { get { throw null; } }
}
Expand Down Expand Up @@ -2718,8 +2717,8 @@ public virtual void OnEndPrint(System.Drawing.Printing.PrintDocument document, S
public virtual System.Drawing.Graphics? OnStartPage(System.Drawing.Printing.PrintDocument document, System.Drawing.Printing.PrintPageEventArgs e) { throw null; }
public virtual void OnStartPrint(System.Drawing.Printing.PrintDocument document, System.Drawing.Printing.PrintEventArgs e) { }
}
[System.ComponentModel.DefaultPropertyAttribute("DocumentName")]
[System.ComponentModel.DefaultEventAttribute("PrintPage")]
[System.ComponentModel.DefaultPropertyAttribute("DocumentName")]
public partial class PrintDocument : System.ComponentModel.Component
{
public PrintDocument() { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ public void DeleteFile(string file) { }
public bool DirectoryExists(string path) { throw null; }
public void Dispose() { }
public bool FileExists(string path) { throw null; }
~IsolatedStorageFile() { }
public System.DateTimeOffset GetCreationTime(string path) { throw null; }
public string[] GetDirectoryNames() { throw null; }
public string[] GetDirectoryNames(string searchPattern) { throw null; }
Expand Down Expand Up @@ -111,8 +110,8 @@ public partial class IsolatedStorageFileStream : System.IO.FileStream
public override long Length { get { throw null; } }
public override long Position { get { throw null; } set { } }
public override Microsoft.Win32.SafeHandles.SafeFileHandle SafeFileHandle { get { throw null; } }
public override System.IAsyncResult BeginRead(byte[] buffer, int offset, int numBytes, System.AsyncCallback? userCallback, object? stateObject) { throw null; }
public override System.IAsyncResult BeginWrite(byte[] buffer, int offset, int numBytes, System.AsyncCallback? userCallback, object? stateObject) { throw null; }
public override System.IAsyncResult BeginRead(byte[] array, int offset, int numBytes, System.AsyncCallback? userCallback, object? stateObject) { throw null; }
public override System.IAsyncResult BeginWrite(byte[] array, int offset, int numBytes, System.AsyncCallback? userCallback, object? stateObject) { throw null; }
protected override void Dispose(bool disposing) { }
public override System.Threading.Tasks.ValueTask DisposeAsync() { throw null; }
public override int EndRead(System.IAsyncResult asyncResult) { throw null; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,7 @@ protected override bool ReleaseHandle()
{
return Interop.Kernel32.CloseHandle(handle);
}

public override bool IsInvalid => base.IsInvalid;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ public WinHttpHandler() { }
public System.Net.CookieContainer? CookieContainer { get { throw null; } set { } }
public System.Net.Http.CookieUsePolicy CookieUsePolicy { get { throw null; } set { } }
public System.Net.ICredentials? DefaultProxyCredentials { get { throw null; } set { } }
public bool EnableMultipleHttp2Connections { 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 EnableMultipleHttp2Connections { get { throw null; } set { } }
public bool PreAuthenticate { get { throw null; } set { } }
public System.Collections.Generic.IDictionary<string, object> Properties { get { throw null; } }
public System.Net.IWebProxy? Proxy { get { throw null; } set { } }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,11 +253,11 @@ public IPAddress(System.ReadOnlySpan<byte> address, long scopeid) { }
public static short NetworkToHostOrder(short network) { throw null; }
public static int NetworkToHostOrder(int network) { throw null; }
public static long NetworkToHostOrder(long network) { throw null; }
public static System.Net.IPAddress Parse(System.ReadOnlySpan<char> ipString) { throw null; }
public static System.Net.IPAddress Parse(System.ReadOnlySpan<char> ipSpan) { throw null; }
public static System.Net.IPAddress Parse(string ipString) { throw null; }
public override string ToString() { throw null; }
public bool TryFormat(System.Span<char> destination, out int charsWritten) { throw null; }
public static bool TryParse(System.ReadOnlySpan<char> ipString, [System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] out System.Net.IPAddress? address) { throw null; }
public static bool TryParse(System.ReadOnlySpan<char> ipSpan, [System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] out System.Net.IPAddress? address) { throw null; }
public static bool TryParse([System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] string? ipString, [System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] out System.Net.IPAddress? address) { throw null; }
public bool TryWriteBytes(System.Span<byte> destination, out int bytesWritten) { throw null; }
}
Expand Down Expand Up @@ -305,7 +305,7 @@ public NetworkCredential(string? userName, string? password, string? domain) { }
[System.Diagnostics.CodeAnalysis.AllowNullAttribute]
public string UserName { get { throw null; } set { } }
public System.Net.NetworkCredential GetCredential(string? host, int port, string? authenticationType) { throw null; }
public System.Net.NetworkCredential GetCredential(System.Uri? uri, string? authType) { throw null; }
public System.Net.NetworkCredential GetCredential(System.Uri? uri, string? authenticationType) { throw null; }
}
public partial class SocketAddress
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,8 @@ public static partial class Vector
public static System.Numerics.Vector<System.UInt64> AsVectorUInt64<T>(System.Numerics.Vector<T> value) where T : struct { throw null; }
public static System.Numerics.Vector<T> BitwiseAnd<T>(System.Numerics.Vector<T> left, System.Numerics.Vector<T> right) where T : struct { throw null; }
public static System.Numerics.Vector<T> BitwiseOr<T>(System.Numerics.Vector<T> left, System.Numerics.Vector<T> right) where T : struct { throw null; }
public static System.Numerics.Vector<System.Double> Ceiling(System.Numerics.Vector<System.Double> value) { throw null; }
public static System.Numerics.Vector<System.Single> Ceiling(System.Numerics.Vector<System.Single> value) { throw null; }
public static System.Numerics.Vector<System.Single> ConditionalSelect(System.Numerics.Vector<System.Int32> condition, System.Numerics.Vector<System.Single> left, System.Numerics.Vector<System.Single> right) { throw null; }
public static System.Numerics.Vector<System.Double> ConditionalSelect(System.Numerics.Vector<System.Int64> condition, System.Numerics.Vector<System.Double> left, System.Numerics.Vector<System.Double> right) { throw null; }
public static System.Numerics.Vector<T> ConditionalSelect<T>(System.Numerics.Vector<T> condition, System.Numerics.Vector<T> left, System.Numerics.Vector<T> right) where T : struct { throw null; }
Expand All @@ -232,6 +234,8 @@ public static partial class Vector
public static bool EqualsAll<T>(System.Numerics.Vector<T> left, System.Numerics.Vector<T> right) where T : struct { throw null; }
public static bool EqualsAny<T>(System.Numerics.Vector<T> left, System.Numerics.Vector<T> right) where T : struct { throw null; }
public static System.Numerics.Vector<T> Equals<T>(System.Numerics.Vector<T> left, System.Numerics.Vector<T> right) where T : struct { throw null; }
public static System.Numerics.Vector<System.Double> Floor(System.Numerics.Vector<System.Double> value) { throw null; }
public static System.Numerics.Vector<System.Single> Floor(System.Numerics.Vector<System.Single> value) { throw null; }
public static System.Numerics.Vector<System.Int64> GreaterThan(System.Numerics.Vector<System.Double> left, System.Numerics.Vector<System.Double> right) { throw null; }
public static System.Numerics.Vector<System.Int32> GreaterThan(System.Numerics.Vector<System.Int32> left, System.Numerics.Vector<System.Int32> right) { throw null; }
public static System.Numerics.Vector<System.Int64> GreaterThan(System.Numerics.Vector<System.Int64> left, System.Numerics.Vector<System.Int64> right) { throw null; }
Expand Down Expand Up @@ -292,10 +296,6 @@ public static partial class Vector
[System.CLSCompliantAttribute(false)]
public static void Widen(System.Numerics.Vector<System.UInt32> source, out System.Numerics.Vector<System.UInt64> dest1, out System.Numerics.Vector<System.UInt64> dest2) { throw null; }
public static System.Numerics.Vector<T> Xor<T>(System.Numerics.Vector<T> left, System.Numerics.Vector<T> right) where T : struct { throw null; }
public static System.Numerics.Vector<System.Single> Ceiling(System.Numerics.Vector<System.Single> value) { throw null; }
public static System.Numerics.Vector<System.Double> Ceiling(System.Numerics.Vector<System.Double> value) { throw null; }
public static System.Numerics.Vector<System.Single> Floor(System.Numerics.Vector<System.Single> value) { throw null; }
public static System.Numerics.Vector<System.Double> Floor(System.Numerics.Vector<System.Double> value) { throw null; }
}
public partial struct Vector2 : System.IEquatable<System.Numerics.Vector2>, System.IFormattable
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public ResourceWriter(string fileName) { }
public System.Func<System.Type, string>? TypeNameConverter { get { throw null; } set { } }
public void AddResource(string name, byte[]? value) { }
public void AddResource(string name, System.IO.Stream? value) { }
public void AddResource(string name, System.IO.Stream? value, bool closeAfterWrite) { }
public void AddResource(string name, System.IO.Stream? value, bool closeAfterWrite = false) { }
public void AddResource(string name, object? value) { }
public void AddResource(string name, string? value) { }
public void AddResourceData(string name, string typeName, byte[] serializedData) { }
Expand Down
Loading