Correcting Mismatch between ref and src (#39741)
authorAnirudh Agnihotry <anirudhagnihotry098@gmail.com>
Thu, 30 Jul 2020 21:52:46 +0000 (14:52 -0700)
committerGitHub <noreply@github.com>
Thu, 30 Jul 2020 21:52:46 +0000 (14:52 -0700)
* minor formatting

* ref changes

23 files changed:
src/libraries/Microsoft.Extensions.Logging/ref/Microsoft.Extensions.Logging.cs
src/libraries/Microsoft.Win32.Registry/ref/Microsoft.Win32.Registry.cs
src/libraries/System.CodeDom/ref/System.CodeDom.cs
src/libraries/System.ComponentModel.Primitives/ref/System.ComponentModel.Primitives.cs
src/libraries/System.Diagnostics.StackTrace/ref/System.Diagnostics.StackTrace.cs
src/libraries/System.Drawing.Common/ref/System.Drawing.Common.cs
src/libraries/System.IO.IsolatedStorage/ref/System.IO.IsolatedStorage.cs
src/libraries/System.IO.MemoryMappedFiles/src/Microsoft/Win32/SafeMemoryMappedFileHandle.Windows.cs
src/libraries/System.Net.Http.WinHttpHandler/ref/System.Net.Http.WinHttpHandler.cs
src/libraries/System.Net.Primitives/ref/System.Net.Primitives.cs
src/libraries/System.Numerics.Vectors/ref/System.Numerics.Vectors.cs
src/libraries/System.Resources.Writer/ref/System.Resources.Writer.cs
src/libraries/System.Runtime.CompilerServices.Unsafe/ref/System.Runtime.CompilerServices.Unsafe.cs
src/libraries/System.Runtime.CompilerServices.VisualC/ref/System.Runtime.CompilerServices.VisualC.cs
src/libraries/System.Runtime.InteropServices.RuntimeInformation/ref/System.Runtime.InteropServices.RuntimeInformation.cs
src/libraries/System.Runtime.InteropServices/ref/System.Runtime.InteropServices.cs
src/libraries/System.Runtime.Loader/ref/System.Runtime.Loader.cs
src/libraries/System.Runtime/ref/System.Runtime.cs
src/libraries/System.Security.Cryptography.Primitives/ref/System.Security.Cryptography.Primitives.cs
src/libraries/System.Threading.AccessControl/ref/System.Threading.AccessControl.cs
src/libraries/System.Threading.Overlapped/ref/System.Threading.Overlapped.cs
src/libraries/System.Threading.ThreadPool/ref/System.Threading.ThreadPool.cs
src/libraries/System.Threading/ref/System.Threading.cs

index d192fa9..fafdc53 100644 (file)
@@ -14,6 +14,16 @@ namespace Microsoft.Extensions.DependencyInjection
 }
 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; }
@@ -39,21 +49,6 @@ namespace Microsoft.Extensions.Logging
     {
         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() { }
@@ -67,6 +62,11 @@ namespace Microsoft.Extensions.Logging
         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() { }
@@ -87,8 +87,8 @@ namespace Microsoft.Extensions.Logging
     {
         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
index f9005e6..ea51db4 100644 (file)
@@ -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; }
     }
 }
index d25a4aa..fa701a2 100644 (file)
@@ -993,7 +993,7 @@ namespace System.CodeDom.Compiler
         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);
index f7997fb..11285fc 100644 (file)
@@ -261,7 +261,7 @@ namespace System.ComponentModel
         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; }
     }
@@ -291,7 +291,7 @@ namespace System.ComponentModel
         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; }
     }
index 3696fe3..46fd6d6 100644 (file)
@@ -10,9 +10,9 @@ namespace System.Diagnostics
     {
         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; }
index 9f54ee1..463ccfd 100644 (file)
@@ -207,7 +207,6 @@ namespace System.Drawing
         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) { }
@@ -657,7 +656,7 @@ namespace System.Drawing
         ~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; }
     }
@@ -731,7 +730,7 @@ namespace System.Drawing
         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
@@ -2096,17 +2095,17 @@ namespace System.Drawing.Imaging
     {
         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; } }
     }
@@ -2718,8 +2717,8 @@ namespace System.Drawing.Printing
         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() { }
index b8d2357..776534a 100644 (file)
@@ -63,7 +63,6 @@ namespace System.IO.IsolatedStorage
         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; }
@@ -111,8 +110,8 @@ namespace System.IO.IsolatedStorage
         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; }
index 29a6916..bd0f7eb 100644 (file)
@@ -14,5 +14,7 @@ namespace Microsoft.Win32.SafeHandles
         {
             return Interop.Kernel32.CloseHandle(handle);
         }
+
+        public override bool IsInvalid => base.IsInvalid;
     }
 }
index 4236046..7339eff 100644 (file)
@@ -30,11 +30,11 @@ namespace System.Net.Http
         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 { } }
index bce36a8..979baf5 100644 (file)
@@ -253,11 +253,11 @@ namespace System.Net
         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; }
     }
@@ -305,7 +305,7 @@ namespace System.Net
         [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
     {
index 9793bb2..ea873ba 100644 (file)
@@ -208,6 +208,8 @@ namespace System.Numerics
         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; }
@@ -232,6 +234,8 @@ namespace System.Numerics
         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; }
@@ -292,10 +296,6 @@ namespace System.Numerics
         [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
     {
index 9c86538..f1cb4bc 100644 (file)
@@ -21,7 +21,7 @@ namespace System.Resources
         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) { }
index 99c28c3..7c9d4fc 100644 (file)
@@ -9,12 +9,12 @@ namespace System.Runtime.CompilerServices
     public static partial class Unsafe
     {
         public static ref T AddByteOffset<T>(ref T source, System.IntPtr byteOffset) { throw null; }
-        public static unsafe void* Add<T>(void* source, int elementOffset) { throw null; }
+        public unsafe static void* Add<T>(void* source, int elementOffset) { throw null; }
         public static ref T Add<T>(ref T source, int elementOffset) { throw null; }
         public static ref T Add<T>(ref T source, System.IntPtr elementOffset) { throw null; }
         public static bool AreSame<T>(ref T left, ref T right) { throw null; }
-        public static unsafe void* AsPointer<T>(ref T value) { throw null; }
-        public static unsafe ref T AsRef<T>(void* source) { throw null; }
+        public unsafe static void* AsPointer<T>(ref T value) { throw null; }
+        public unsafe static ref T AsRef<T>(void* source) { throw null; }
         public static ref T AsRef<T>(in T source) { throw null; }
 #if NETSTANDARD2_1
         [return: System.Diagnostics.CodeAnalysis.MaybeNullAttribute]
@@ -24,31 +24,31 @@ namespace System.Runtime.CompilerServices
         public static ref TTo As<TFrom, TTo>(ref TFrom source) { throw null; }
         public static System.IntPtr ByteOffset<T>(ref T origin, ref T target) { throw null; }
         public static void CopyBlock(ref byte destination, ref byte source, uint byteCount) { }
-        public static unsafe void CopyBlock(void* destination, void* source, uint byteCount) { }
+        public unsafe static void CopyBlock(void* destination, void* source, uint byteCount) { }
         public static void CopyBlockUnaligned(ref byte destination, ref byte source, uint byteCount) { }
-        public static unsafe void CopyBlockUnaligned(void* destination, void* source, uint byteCount) { }
-        public static unsafe void Copy<T>(void* destination, ref T source) { }
-        public static unsafe void Copy<T>(ref T destination, void* source) { }
+        public unsafe static void CopyBlockUnaligned(void* destination, void* source, uint byteCount) { }
+        public unsafe static void Copy<T>(void* destination, ref T source) { }
+        public unsafe static void Copy<T>(ref T destination, void* source) { }
         public static void InitBlock(ref byte startAddress, byte value, uint byteCount) { }
-        public static unsafe void InitBlock(void* startAddress, byte value, uint byteCount) { }
+        public unsafe static void InitBlock(void* startAddress, byte value, uint byteCount) { }
         public static void InitBlockUnaligned(ref byte startAddress, byte value, uint byteCount) { }
-        public static unsafe void InitBlockUnaligned(void* startAddress, byte value, uint byteCount) { }
+        public unsafe static void InitBlockUnaligned(void* startAddress, byte value, uint byteCount) { }
         public static bool IsAddressGreaterThan<T>(ref T left, ref T right) { throw null; }
         public static bool IsAddressLessThan<T>(ref T left, ref T right) { throw null; }
         public static bool IsNullRef<T>(ref T source) { throw null; }
         public static ref T NullRef<T>() { throw null; }
         public static T ReadUnaligned<T>(ref byte source) { throw null; }
-        public static unsafe T ReadUnaligned<T>(void* source) { throw null; }
-        public static unsafe T Read<T>(void* source) { throw null; }
+        public unsafe static T ReadUnaligned<T>(void* source) { throw null; }
+        public unsafe static T Read<T>(void* source) { throw null; }
         public static void SkipInit<T>(out T value) { throw null; }
         public static int SizeOf<T>() { throw null; }
         public static ref T SubtractByteOffset<T>(ref T source, System.IntPtr byteOffset) { throw null; }
-        public static unsafe void* Subtract<T>(void* source, int elementOffset) { throw null; }
+        public unsafe static void* Subtract<T>(void* source, int elementOffset) { throw null; }
         public static ref T Subtract<T>(ref T source, int elementOffset) { throw null; }
         public static ref T Subtract<T>(ref T source, System.IntPtr elementOffset) { throw null; }
         public static ref T Unbox<T>(object box) where T : struct { throw null; }
         public static void WriteUnaligned<T>(ref byte destination, T value) { }
-        public static unsafe void WriteUnaligned<T>(void* destination, T value) { }
-        public static unsafe void Write<T>(void* destination, T value) { }
+        public unsafe static void WriteUnaligned<T>(void* destination, T value) { }
+        public unsafe static void Write<T>(void* destination, T value) { }
     }
 }
index f636324..5cf0c49 100644 (file)
@@ -9,6 +9,11 @@ namespace System.Runtime.CompilerServices
     public static partial class CompilerMarshalOverride
     {
     }
+    [AttributeUsageAttribute(AttributeTargets.Assembly, AllowMultiple=true)]
+    public sealed class CppInlineNamespaceAttribute : Attribute
+    {
+        public CppInlineNamespaceAttribute(string dottedName) {}
+    }
     [System.AttributeUsageAttribute(System.AttributeTargets.Struct)]
     public sealed partial class HasCopySemanticsAttribute : System.Attribute
     {
@@ -49,11 +54,6 @@ namespace System.Runtime.CompilerServices
     {
         public NativeCppClassAttribute() { }
     }
-    [AttributeUsageAttribute(AttributeTargets.Assembly, AllowMultiple=true)]
-    public sealed class CppInlineNamespaceAttribute : Attribute
-    {
-        public CppInlineNamespaceAttribute(string dottedName) {}
-    }
     [System.AttributeUsageAttribute(System.AttributeTargets.Class | System.AttributeTargets.Enum | System.AttributeTargets.Interface | System.AttributeTargets.Struct, AllowMultiple=true, Inherited=false)]
     public sealed partial class RequiredAttributeAttribute : System.Attribute
     {
index 46d2dd5..59b347a 100644 (file)
@@ -45,15 +45,15 @@ namespace System.Runtime.InteropServices
         public static System.Runtime.InteropServices.Architecture ProcessArchitecture { get { throw null; } }
         public static string RuntimeIdentifier { get { throw null; } }
         public static bool IsOSPlatform(System.Runtime.InteropServices.OSPlatform osPlatform) { throw null; }
-        public static bool IsOSPlatformOrLater(string platformName) { throw null; }
-        public static bool IsOSPlatformOrLater(System.Runtime.InteropServices.OSPlatform osPlatform, int major) { throw null; }
-        public static bool IsOSPlatformOrLater(System.Runtime.InteropServices.OSPlatform osPlatform, int major, int minor) { throw null; }
-        public static bool IsOSPlatformOrLater(System.Runtime.InteropServices.OSPlatform osPlatform, int major, int minor, int build) { throw null; }
-        public static bool IsOSPlatformOrLater(System.Runtime.InteropServices.OSPlatform osPlatform, int major, int minor, int build, int revision) { throw null; }
-        public static bool IsOSPlatformEarlierThan(string platformName) { throw null; }
         public static bool IsOSPlatformEarlierThan(System.Runtime.InteropServices.OSPlatform osPlatform, int major) { throw null; }
         public static bool IsOSPlatformEarlierThan(System.Runtime.InteropServices.OSPlatform osPlatform, int major, int minor) { throw null; }
         public static bool IsOSPlatformEarlierThan(System.Runtime.InteropServices.OSPlatform osPlatform, int major, int minor, int build) { throw null; }
         public static bool IsOSPlatformEarlierThan(System.Runtime.InteropServices.OSPlatform osPlatform, int major, int minor, int build, int revision) { throw null; }
+        public static bool IsOSPlatformEarlierThan(string platformName) { throw null; }
+        public static bool IsOSPlatformOrLater(System.Runtime.InteropServices.OSPlatform osPlatform, int major) { throw null; }
+        public static bool IsOSPlatformOrLater(System.Runtime.InteropServices.OSPlatform osPlatform, int major, int minor) { throw null; }
+        public static bool IsOSPlatformOrLater(System.Runtime.InteropServices.OSPlatform osPlatform, int major, int minor, int build) { throw null; }
+        public static bool IsOSPlatformOrLater(System.Runtime.InteropServices.OSPlatform osPlatform, int major, int minor, int build, int revision) { throw null; }
+        public static bool IsOSPlatformOrLater(string platformName) { throw null; }
     }
 }
index e4860f7..792ccaa 100644 (file)
@@ -1031,7 +1031,7 @@ namespace System.Runtime.InteropServices
         public struct ComInterfaceDispatch
         {
             public System.IntPtr Vtable;
-            public static unsafe T GetInstance<T>(ComInterfaceDispatch* dispatchPtr) where T : class { throw null; }
+            public unsafe static T GetInstance<T>(ComInterfaceDispatch* dispatchPtr) where T : class { throw null; }
         }
         public System.IntPtr GetOrCreateComInterfaceForObject(object instance, CreateComInterfaceFlags flags) { throw null; }
         protected unsafe abstract ComInterfaceEntry* ComputeVtables(object obj, CreateComInterfaceFlags flags, out int count);
index 99d71fc..b73650c 100644 (file)
@@ -9,7 +9,7 @@ namespace System.Reflection.Metadata
     public static partial class AssemblyExtensions
     {
         [System.CLSCompliantAttribute(false)]
-        public static unsafe bool TryGetRawMetadata(this System.Reflection.Assembly assembly, out byte* blob, out int length) { throw null; }
+        public unsafe static bool TryGetRawMetadata(this System.Reflection.Assembly assembly, out byte* blob, out int length) { throw null; }
     }
 }
 namespace System.Runtime.Loader
index a4a16a6..56cc3ae 100644 (file)
@@ -3638,10 +3638,10 @@ namespace System
     }
     public static partial class StringNormalizationExtensions
     {
-        public static bool IsNormalized(this string value) { throw null; }
-        public static bool IsNormalized(this string value, System.Text.NormalizationForm normalizationForm) { throw null; }
-        public static string Normalize(this string value) { throw null; }
-        public static string Normalize(this string value, System.Text.NormalizationForm normalizationForm) { throw null; }
+        public static bool IsNormalized(this string strInput) { throw null; }
+        public static bool IsNormalized(this string strInput, System.Text.NormalizationForm normalizationForm) { throw null; }
+        public static string Normalize(this string strInput) { throw null; }
+        public static string Normalize(this string strInput, System.Text.NormalizationForm normalizationForm) { throw null; }
     }
     [System.FlagsAttribute]
     public enum StringSplitOptions
index 2add4b9..0082a61 100644 (file)
@@ -9,7 +9,8 @@ namespace System.Security.Cryptography
     public abstract partial class AsymmetricAlgorithm : System.IDisposable
     {
         protected int KeySizeValue;
-        [System.Diagnostics.CodeAnalysis.MaybeNullAttribute] protected System.Security.Cryptography.KeySizes[] LegalKeySizesValue;
+        [System.Diagnostics.CodeAnalysis.MaybeNullAttribute]
+        protected System.Security.Cryptography.KeySizes[] LegalKeySizesValue;
         protected AsymmetricAlgorithm() { }
         public virtual string? KeyExchangeAlgorithm { get { throw null; } }
         public virtual int KeySize { get { throw null; } set { } }
@@ -220,8 +221,10 @@ namespace System.Security.Cryptography
         protected byte[]? IVValue;
         protected int KeySizeValue;
         protected byte[]? KeyValue;
-        [System.Diagnostics.CodeAnalysis.MaybeNullAttribute] protected System.Security.Cryptography.KeySizes[] LegalBlockSizesValue;
-        [System.Diagnostics.CodeAnalysis.MaybeNullAttribute] protected System.Security.Cryptography.KeySizes[] LegalKeySizesValue;
+        [System.Diagnostics.CodeAnalysis.MaybeNullAttribute]
+        protected System.Security.Cryptography.KeySizes[] LegalBlockSizesValue;
+        [System.Diagnostics.CodeAnalysis.MaybeNullAttribute]
+        protected System.Security.Cryptography.KeySizes[] LegalKeySizesValue;
         protected System.Security.Cryptography.CipherMode ModeValue;
         protected System.Security.Cryptography.PaddingMode PaddingValue;
         protected SymmetricAlgorithm() { }
index db92ef1..b42eb33 100644 (file)
@@ -137,25 +137,25 @@ namespace System.Security.AccessControl
 }
 namespace System.Threading
 {
-    public static partial class ThreadingAclExtensions
-    {
-        public static System.Security.AccessControl.EventWaitHandleSecurity GetAccessControl(this System.Threading.EventWaitHandle handle) { throw null; }
-        public static System.Security.AccessControl.MutexSecurity GetAccessControl(this System.Threading.Mutex mutex) { throw null; }
-        public static System.Security.AccessControl.SemaphoreSecurity GetAccessControl(this System.Threading.Semaphore semaphore) { throw null; }
-        public static void SetAccessControl(this System.Threading.EventWaitHandle handle, System.Security.AccessControl.EventWaitHandleSecurity eventSecurity) { }
-        public static void SetAccessControl(this System.Threading.Mutex mutex, System.Security.AccessControl.MutexSecurity mutexSecurity) { }
-        public static void SetAccessControl(this System.Threading.Semaphore semaphore, System.Security.AccessControl.SemaphoreSecurity semaphoreSecurity) { }
-    }
-    public static class EventWaitHandleAcl
+    public static partial class EventWaitHandleAcl
     {
         public static System.Threading.EventWaitHandle Create(bool initialState, System.Threading.EventResetMode mode, string? name, out bool createdNew, System.Security.AccessControl.EventWaitHandleSecurity? eventSecurity) { throw null; }
     }
-    public static class MutexAcl
+    public static partial class MutexAcl
     {
         public static System.Threading.Mutex Create(bool initiallyOwned, string? name, out bool createdNew, System.Security.AccessControl.MutexSecurity? mutexSecurity) { throw null; }
     }
-    public static class SemaphoreAcl
+    public static partial class SemaphoreAcl
     {
         public static System.Threading.Semaphore Create(int initialCount, int maximumCount, string? name, out bool createdNew, System.Security.AccessControl.SemaphoreSecurity? semaphoreSecurity) { throw null; }
     }
+    public static partial class ThreadingAclExtensions
+    {
+        public static System.Security.AccessControl.EventWaitHandleSecurity GetAccessControl(this System.Threading.EventWaitHandle handle) { throw null; }
+        public static System.Security.AccessControl.MutexSecurity GetAccessControl(this System.Threading.Mutex mutex) { throw null; }
+        public static System.Security.AccessControl.SemaphoreSecurity GetAccessControl(this System.Threading.Semaphore semaphore) { throw null; }
+        public static void SetAccessControl(this System.Threading.EventWaitHandle handle, System.Security.AccessControl.EventWaitHandleSecurity eventSecurity) { }
+        public static void SetAccessControl(this System.Threading.Mutex mutex, System.Security.AccessControl.MutexSecurity mutexSecurity) { }
+        public static void SetAccessControl(this System.Threading.Semaphore semaphore, System.Security.AccessControl.SemaphoreSecurity semaphoreSecurity) { }
+    }
 }
index 991a27b..634e169 100644 (file)
@@ -29,14 +29,14 @@ namespace System.Threading
         public int OffsetHigh { get { throw null; } set { } }
         public int OffsetLow { get { throw null; } set { } }
         [System.CLSCompliantAttribute(false)]
-        public static unsafe void Free(System.Threading.NativeOverlapped* nativeOverlappedPtr) { }
+        public unsafe static void Free(System.Threading.NativeOverlapped* nativeOverlappedPtr) { }
         [System.CLSCompliantAttribute(false)]
         [System.ObsoleteAttribute("This method is not safe.  Use Pack (iocb, userData) instead.  https://go.microsoft.com/fwlink/?linkid=14202")]
         public unsafe System.Threading.NativeOverlapped* Pack(System.Threading.IOCompletionCallback? iocb) { throw null; }
         [System.CLSCompliantAttribute(false)]
         public unsafe System.Threading.NativeOverlapped* Pack(System.Threading.IOCompletionCallback? iocb, object? userData) { throw null; }
         [System.CLSCompliantAttribute(false)]
-        public static unsafe System.Threading.Overlapped Unpack(System.Threading.NativeOverlapped* nativeOverlappedPtr) { throw null; }
+        public unsafe static System.Threading.Overlapped Unpack(System.Threading.NativeOverlapped* nativeOverlappedPtr) { throw null; }
         [System.CLSCompliantAttribute(false)]
         [System.ObsoleteAttribute("This method is not safe.  Use UnsafePack (iocb, userData) instead.  https://go.microsoft.com/fwlink/?linkid=14202")]
         public unsafe System.Threading.NativeOverlapped* UnsafePack(System.Threading.IOCompletionCallback? iocb) { throw null; }
@@ -63,6 +63,6 @@ namespace System.Threading
         [System.CLSCompliantAttribute(false)]
         public unsafe void FreeNativeOverlapped(System.Threading.NativeOverlapped* overlapped) { }
         [System.CLSCompliantAttribute(false)]
-        public static unsafe object? GetNativeOverlappedState(System.Threading.NativeOverlapped* overlapped) { throw null; }
+        public unsafe static object? GetNativeOverlappedState(System.Threading.NativeOverlapped* overlapped) { throw null; }
     }
 }
index 75238f6..b815c81 100644 (file)
@@ -37,7 +37,7 @@ namespace System.Threading
         public static bool SetMaxThreads(int workerThreads, int completionPortThreads) { throw null; }
         public static bool SetMinThreads(int workerThreads, int completionPortThreads) { throw null; }
         [System.CLSCompliantAttribute(false)]
-        public static unsafe bool UnsafeQueueNativeOverlapped(System.Threading.NativeOverlapped* overlapped) { throw null; }
+        public unsafe static bool UnsafeQueueNativeOverlapped(System.Threading.NativeOverlapped* overlapped) { throw null; }
         public static bool UnsafeQueueUserWorkItem(System.Threading.IThreadPoolWorkItem callBack, bool preferLocal) { throw null; }
         public static bool UnsafeQueueUserWorkItem(System.Threading.WaitCallback callBack, object? state) { throw null; }
         public static bool UnsafeQueueUserWorkItem<TState>(System.Action<TState> callBack, TState state, bool preferLocal) { throw null; }
index d0f85e2..87d1f38 100644 (file)
@@ -153,61 +153,61 @@ namespace System.Threading
     public static partial class Interlocked
     {
         public static int Add(ref int location1, int value) { throw null; }
+        public static long Add(ref long location1, long value) { throw null; }
         [System.CLSCompliantAttribute(false)]
         public static uint Add(ref uint location1, uint value) { throw null; }
-        public static long Add(ref long location1, long value) { throw null; }
         [System.CLSCompliantAttribute(false)]
         public static ulong Add(ref ulong location1, ulong value) { throw null; }
         public static int And(ref int location1, int value) { throw null; }
+        public static long And(ref long location1, long value) { throw null; }
         [System.CLSCompliantAttribute(false)]
         public static uint And(ref uint location1, uint value) { throw null; }
-        public static long And(ref long location1, long value) { throw null; }
         [System.CLSCompliantAttribute(false)]
         public static ulong And(ref ulong location1, ulong value) { throw null; }
         public static double CompareExchange(ref double location1, double value, double comparand) { throw null; }
         public static int CompareExchange(ref int location1, int value, int comparand) { throw null; }
-        [System.CLSCompliantAttribute(false)]
-        public static uint CompareExchange(ref uint location1, uint value, uint comparand) { throw null; }
         public static long CompareExchange(ref long location1, long value, long comparand) { throw null; }
-        [System.CLSCompliantAttribute(false)]
-        public static ulong CompareExchange(ref ulong location1, ulong value, ulong comparand) { throw null; }
         public static System.IntPtr CompareExchange(ref System.IntPtr location1, System.IntPtr value, System.IntPtr comparand) { throw null; }
         [return: System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("location1")]
         public static object? CompareExchange(ref object? location1, object? value, object? comparand) { throw null; }
         public static float CompareExchange(ref float location1, float value, float comparand) { throw null; }
+        [System.CLSCompliantAttribute(false)]
+        public static uint CompareExchange(ref uint location1, uint value, uint comparand) { throw null; }
+        [System.CLSCompliantAttribute(false)]
+        public static ulong CompareExchange(ref ulong location1, ulong value, ulong comparand) { throw null; }
         [return: System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("location1")]
         public static T CompareExchange<T>(ref T location1, T value, T comparand) where T : class? { throw null; }
         public static int Decrement(ref int location) { throw null; }
+        public static long Decrement(ref long location) { throw null; }
         [System.CLSCompliantAttribute(false)]
         public static uint Decrement(ref uint location) { throw null; }
-        public static long Decrement(ref long location) { throw null; }
         [System.CLSCompliantAttribute(false)]
         public static ulong Decrement(ref ulong location) { throw null; }
         public static double Exchange(ref double location1, double value) { throw null; }
         public static int Exchange(ref int location1, int value) { throw null; }
-        [System.CLSCompliantAttribute(false)]
-        public static uint Exchange(ref uint location1, uint value) { throw null; }
         public static long Exchange(ref long location1, long value) { throw null; }
-        [System.CLSCompliantAttribute(false)]
-        public static ulong Exchange(ref ulong location1, ulong value) { throw null; }
         public static System.IntPtr Exchange(ref System.IntPtr location1, System.IntPtr value) { throw null; }
         [return: System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("location1")]
         public static object? Exchange([System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("value")] ref object? location1, object? value) { throw null; }
         public static float Exchange(ref float location1, float value) { throw null; }
+        [System.CLSCompliantAttribute(false)]
+        public static uint Exchange(ref uint location1, uint value) { throw null; }
+        [System.CLSCompliantAttribute(false)]
+        public static ulong Exchange(ref ulong location1, ulong value) { throw null; }
         [return: System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("location1")]
         public static T Exchange<T>([System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("value")] ref T location1, T value) where T : class? { throw null; }
         public static int Increment(ref int location) { throw null; }
+        public static long Increment(ref long location) { throw null; }
         [System.CLSCompliantAttribute(false)]
         public static uint Increment(ref uint location) { throw null; }
-        public static long Increment(ref long location) { throw null; }
         [System.CLSCompliantAttribute(false)]
         public static ulong Increment(ref ulong location) { throw null; }
         public static void MemoryBarrier() { }
         public static void MemoryBarrierProcessWide() { }
         public static int Or(ref int location1, int value) { throw null; }
+        public static long Or(ref long location1, long value) { throw null; }
         [System.CLSCompliantAttribute(false)]
         public static uint Or(ref uint location1, uint value) { throw null; }
-        public static long Or(ref long location1, long value) { throw null; }
         [System.CLSCompliantAttribute(false)]
         public static ulong Or(ref ulong location1, ulong value) { throw null; }
         public static long Read(ref long location) { throw null; }