From f49b06c0a571f598fb52aa42b0440f3913ea1164 Mon Sep 17 00:00:00 2001 From: Ahson Khan Date: Wed, 14 Nov 2018 20:54:49 -0800 Subject: [PATCH] Merge relevant changes from the auto-generated System.Runtime ref (dotnet/corefx#33512) * Merge relevant changes from the auto-generated System.Runtime ref * Update attributes and default enum values * Add back accidentally removed EditorBrowsableState attribute Commit migrated from https://github.com/dotnet/corefx/commit/a624719780aa96a0cb33855375a79b611fda1ace --- .../System.Runtime/ref/System.Runtime.cs | 369 +++++++++--------- 1 file changed, 183 insertions(+), 186 deletions(-) diff --git a/src/libraries/System.Runtime/ref/System.Runtime.cs b/src/libraries/System.Runtime/ref/System.Runtime.cs index a8155d4d11a840..57549bf1fbb212 100644 --- a/src/libraries/System.Runtime/ref/System.Runtime.cs +++ b/src/libraries/System.Runtime/ref/System.Runtime.cs @@ -67,15 +67,15 @@ public AccessViolationException(string message, System.Exception innerException) public delegate void Action(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9); public static partial class Activator { + public static System.Runtime.Remoting.ObjectHandle CreateInstance(string assemblyName, string typeName) { throw null; } + public static System.Runtime.Remoting.ObjectHandle CreateInstance(string assemblyName, string typeName, bool ignoreCase, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, object[] args, System.Globalization.CultureInfo culture, object[] activationAttributes) { throw null; } + public static System.Runtime.Remoting.ObjectHandle CreateInstance(string assemblyName, string typeName, object[] activationAttributes) { throw null; } public static object CreateInstance(System.Type type) { throw null; } public static object CreateInstance(System.Type type, bool nonPublic) { throw null; } public static object CreateInstance(System.Type type, params object[] args) { throw null; } public static object CreateInstance(System.Type type, object[] args, object[] activationAttributes) { throw null; } public static object CreateInstance(System.Type type, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, object[] args, System.Globalization.CultureInfo culture) { throw null; } public static object CreateInstance(System.Type type, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, object[] args, System.Globalization.CultureInfo culture, object[] activationAttributes) { throw null; } - public static System.Runtime.Remoting.ObjectHandle CreateInstance(string assemblyName, string typeName) { throw null; } - public static System.Runtime.Remoting.ObjectHandle CreateInstance(string assemblyName, string typeName, bool ignoreCase, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, object[] args, System.Globalization.CultureInfo culture, object[] activationAttributes) { throw null; } - public static System.Runtime.Remoting.ObjectHandle CreateInstance(string assemblyName, string typeName, object[] activationAttributes) { throw null; } public static System.Runtime.Remoting.ObjectHandle CreateInstanceFrom(string assemblyFile, string typeName) { throw null; } public static System.Runtime.Remoting.ObjectHandle CreateInstanceFrom(string assemblyFile, string typeName, bool ignoreCase, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, object[] args, System.Globalization.CultureInfo culture, object[] activationAttributes) { throw null; } public static System.Runtime.Remoting.ObjectHandle CreateInstanceFrom(string assemblyFile, string typeName, object[] activationAttributes) { throw null; } @@ -346,7 +346,7 @@ public ArrayTypeMismatchException(string message) { } public ArrayTypeMismatchException(string message, System.Exception innerException) { } } public delegate void AsyncCallback(System.IAsyncResult ar); - [System.AttributeUsageAttribute((System.AttributeTargets)(32767), Inherited=true, AllowMultiple=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.All, Inherited=true, AllowMultiple=false)] public abstract partial class Attribute { protected Attribute() { } @@ -408,7 +408,7 @@ public enum AttributeTargets ReturnValue = 8192, Struct = 8, } - [System.AttributeUsageAttribute((System.AttributeTargets)(4), Inherited=true)] + [System.AttributeUsageAttribute(System.AttributeTargets.Class, Inherited=true)] public sealed partial class AttributeUsageAttribute : System.Attribute { public AttributeUsageAttribute(System.AttributeTargets validOn) { } @@ -486,7 +486,7 @@ public static void SetByte(System.Array array, int index, byte value) { } public override bool Equals(object obj) { throw null; } public override int GetHashCode() { throw null; } public System.TypeCode GetTypeCode() { throw null; } - public static System.Byte Parse(System.ReadOnlySpan s, System.Globalization.NumberStyles style = (System.Globalization.NumberStyles)(7), System.IFormatProvider provider = null) { throw null; } + public static System.Byte Parse(System.ReadOnlySpan s, System.Globalization.NumberStyles style = System.Globalization.NumberStyles.Integer, System.IFormatProvider provider = null) { throw null; } public static System.Byte Parse(string s) { throw null; } public static System.Byte Parse(string s, System.Globalization.NumberStyles style) { throw null; } public static System.Byte Parse(string s, System.Globalization.NumberStyles style, System.IFormatProvider provider) { throw null; } @@ -601,7 +601,7 @@ public void Dispose() { } public bool MoveNext() { throw null; } public void Reset() { } } - [System.AttributeUsageAttribute((System.AttributeTargets)(32767), Inherited=true, AllowMultiple=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.All, Inherited=true, AllowMultiple=false)] public sealed partial class CLSCompliantAttribute : System.Attribute { public CLSCompliantAttribute(bool isCompliant) { } @@ -679,12 +679,12 @@ public CLSCompliantAttribute(bool isCompliant) { } public static bool operator <=(System.DateTime t1, System.DateTime t2) { throw null; } public static System.TimeSpan operator -(System.DateTime d1, System.DateTime d2) { throw null; } public static System.DateTime operator -(System.DateTime d, System.TimeSpan t) { throw null; } - public static System.DateTime Parse(System.ReadOnlySpan s, System.IFormatProvider provider = null, System.Globalization.DateTimeStyles styles = (System.Globalization.DateTimeStyles)(0)) { throw null; } + public static System.DateTime Parse(System.ReadOnlySpan s, System.IFormatProvider provider = null, System.Globalization.DateTimeStyles styles = System.Globalization.DateTimeStyles.None) { throw null; } public static System.DateTime Parse(string s) { throw null; } public static System.DateTime Parse(string s, System.IFormatProvider provider) { throw null; } public static System.DateTime Parse(string s, System.IFormatProvider provider, System.Globalization.DateTimeStyles styles) { throw null; } - public static System.DateTime ParseExact(System.ReadOnlySpan s, System.ReadOnlySpan format, System.IFormatProvider provider, System.Globalization.DateTimeStyles style = (System.Globalization.DateTimeStyles)(0)) { throw null; } - public static System.DateTime ParseExact(System.ReadOnlySpan s, string[] formats, System.IFormatProvider provider, System.Globalization.DateTimeStyles style = (System.Globalization.DateTimeStyles)(0)) { throw null; } + public static System.DateTime ParseExact(System.ReadOnlySpan s, System.ReadOnlySpan format, System.IFormatProvider provider, System.Globalization.DateTimeStyles style = System.Globalization.DateTimeStyles.None) { throw null; } + public static System.DateTime ParseExact(System.ReadOnlySpan s, string[] formats, System.IFormatProvider provider, System.Globalization.DateTimeStyles style = System.Globalization.DateTimeStyles.None) { throw null; } public static System.DateTime ParseExact(string s, string format, System.IFormatProvider provider) { throw null; } public static System.DateTime ParseExact(string s, string format, System.IFormatProvider provider, System.Globalization.DateTimeStyles style) { throw null; } public static System.DateTime ParseExact(string s, string[] formats, System.IFormatProvider provider, System.Globalization.DateTimeStyles style) { throw null; } @@ -797,12 +797,12 @@ public enum DateTimeKind public static bool operator <=(System.DateTimeOffset left, System.DateTimeOffset right) { throw null; } public static System.TimeSpan operator -(System.DateTimeOffset left, System.DateTimeOffset right) { throw null; } public static System.DateTimeOffset operator -(System.DateTimeOffset dateTimeOffset, System.TimeSpan timeSpan) { throw null; } - public static System.DateTimeOffset Parse(System.ReadOnlySpan input, System.IFormatProvider formatProvider = null, System.Globalization.DateTimeStyles styles = (System.Globalization.DateTimeStyles)(0)) { throw null; } + public static System.DateTimeOffset Parse(System.ReadOnlySpan input, System.IFormatProvider formatProvider = null, System.Globalization.DateTimeStyles styles = System.Globalization.DateTimeStyles.None) { throw null; } public static System.DateTimeOffset Parse(string input) { throw null; } public static System.DateTimeOffset Parse(string input, System.IFormatProvider formatProvider) { throw null; } public static System.DateTimeOffset Parse(string input, System.IFormatProvider formatProvider, System.Globalization.DateTimeStyles styles) { throw null; } - public static System.DateTimeOffset ParseExact(System.ReadOnlySpan input, System.ReadOnlySpan format, System.IFormatProvider formatProvider, System.Globalization.DateTimeStyles styles = (System.Globalization.DateTimeStyles)(0)) { throw null; } - public static System.DateTimeOffset ParseExact(System.ReadOnlySpan input, string[] formats, System.IFormatProvider formatProvider, System.Globalization.DateTimeStyles styles = (System.Globalization.DateTimeStyles)(0)) { throw null; } + public static System.DateTimeOffset ParseExact(System.ReadOnlySpan input, System.ReadOnlySpan format, System.IFormatProvider formatProvider, System.Globalization.DateTimeStyles styles = System.Globalization.DateTimeStyles.None) { throw null; } + public static System.DateTimeOffset ParseExact(System.ReadOnlySpan input, string[] formats, System.IFormatProvider formatProvider, System.Globalization.DateTimeStyles styles = System.Globalization.DateTimeStyles.None) { throw null; } public static System.DateTimeOffset ParseExact(string input, string format, System.IFormatProvider formatProvider) { throw null; } public static System.DateTimeOffset ParseExact(string input, string format, System.IFormatProvider formatProvider, System.Globalization.DateTimeStyles styles) { throw null; } public static System.DateTimeOffset ParseExact(string input, string[] formats, System.IFormatProvider formatProvider, System.Globalization.DateTimeStyles styles) { throw null; } @@ -949,7 +949,7 @@ public void GetObjectData(System.Runtime.Serialization.SerializationInfo info, S public static System.Decimal operator -(System.Decimal d1, System.Decimal d2) { throw null; } public static System.Decimal operator -(System.Decimal d) { throw null; } public static System.Decimal operator +(System.Decimal d) { throw null; } - public static System.Decimal Parse(System.ReadOnlySpan s, System.Globalization.NumberStyles style = (System.Globalization.NumberStyles)(111), System.IFormatProvider provider = null) { throw null; } + public static System.Decimal Parse(System.ReadOnlySpan s, System.Globalization.NumberStyles style = System.Globalization.NumberStyles.Number, System.IFormatProvider provider = null) { throw null; } public static System.Decimal Parse(string s) { throw null; } public static System.Decimal Parse(string s, System.Globalization.NumberStyles style) { throw null; } public static System.Decimal Parse(string s, System.Globalization.NumberStyles style, System.IFormatProvider provider) { throw null; } @@ -1002,33 +1002,6 @@ void System.Runtime.Serialization.IDeserializationCallback.OnDeserialization(obj public static bool TryParse(string s, out System.Decimal result) { throw null; } public static bool TryParse(string s, System.Globalization.NumberStyles style, System.IFormatProvider provider, out System.Decimal result) { throw null; } } - public readonly partial struct Index : System.IEquatable - { - private readonly int _dummyPrimitive; - public Index(int value, bool fromEnd) { throw null; } - public int Value { get { throw null; } } - public bool FromEnd { get { throw null; } } - public override bool Equals(object value) { throw null; } - public bool Equals(Index other) { throw null; } - public override int GetHashCode() { throw null; } - public override string ToString() { throw null; } - public static implicit operator Index(int value) { throw null; } - } - public readonly partial struct Range : System.IEquatable - { - private readonly int _dummyPrimitive; - public Index Start { get { throw null; } } - public Index End { get { throw null; } } - public override bool Equals(object value) { throw null; } - public bool Equals(Range other) { throw null; } - public override int GetHashCode() { throw null; } - public override string ToString() { throw null; } - public static Range Create(Index start, Index end) { throw null; } - public static Range FromStart(Index start) { throw null; } - public static Range ToEnd(Index end) { throw null; } - public static Range All() { throw null; } - } - public abstract partial class Delegate : System.ICloneable, System.Runtime.Serialization.ISerializable { protected Delegate(object target, string method) { } @@ -1098,7 +1071,7 @@ public DivideByZeroException(string message, System.Exception innerException) { public static bool operator !=(System.Double left, System.Double right) { throw null; } public static bool operator <(System.Double left, System.Double right) { throw null; } public static bool operator <=(System.Double left, System.Double right) { throw null; } - public static System.Double Parse(System.ReadOnlySpan s, System.Globalization.NumberStyles style = (System.Globalization.NumberStyles)(231), System.IFormatProvider provider = null) { throw null; } + public static System.Double Parse(System.ReadOnlySpan s, System.Globalization.NumberStyles style = System.Globalization.NumberStyles.AllowDecimalPoint | System.Globalization.NumberStyles.AllowExponent | System.Globalization.NumberStyles.AllowLeadingSign | System.Globalization.NumberStyles.AllowLeadingWhite | System.Globalization.NumberStyles.AllowThousands | System.Globalization.NumberStyles.AllowTrailingWhite, System.IFormatProvider provider = null) { throw null; } public static System.Double Parse(string s) { throw null; } public static System.Double Parse(string s, System.Globalization.NumberStyles style) { throw null; } public static System.Double Parse(string s, System.Globalization.NumberStyles style, System.IFormatProvider provider) { throw null; } @@ -1245,7 +1218,7 @@ public partial class FileStyleUriParser : System.UriParser { public FileStyleUriParser() { } } - [System.AttributeUsageAttribute((System.AttributeTargets)(16), Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Enum, Inherited=false)] public partial class FlagsAttribute : System.Attribute { public FlagsAttribute() { } @@ -1261,8 +1234,8 @@ public abstract partial class FormattableString : System.IFormattable { protected FormattableString() { } public abstract int ArgumentCount { get; } - public static string CurrentCulture(System.FormattableString formattable) { throw null; } public abstract string Format { get; } + public static string CurrentCulture(System.FormattableString formattable) { throw null; } public abstract object GetArgument(int index); public abstract object[] GetArguments(); public static string Invariant(System.FormattableString formattable) { throw null; } @@ -1483,6 +1456,18 @@ public partial interface IFormattable { string ToString(string format, System.IFormatProvider formatProvider); } + public readonly partial struct Index : System.IEquatable + { + private readonly int _dummyPrimitive; + public Index(int value, bool fromEnd) { throw null; } + public bool FromEnd { get { throw null; } } + public int Value { get { throw null; } } + public bool Equals(System.Index other) { throw null; } + public override bool Equals(object value) { throw null; } + public override int GetHashCode() { throw null; } + public static implicit operator System.Index (int value) { throw null; } + public override string ToString() { throw null; } + } public sealed partial class IndexOutOfRangeException : System.SystemException { public IndexOutOfRangeException() { } @@ -1512,7 +1497,7 @@ public InsufficientMemoryException(string message, System.Exception innerExcepti public override bool Equals(object obj) { throw null; } public override int GetHashCode() { throw null; } public System.TypeCode GetTypeCode() { throw null; } - public static System.Int16 Parse(System.ReadOnlySpan s, System.Globalization.NumberStyles style = (System.Globalization.NumberStyles)(7), System.IFormatProvider provider = null) { throw null; } + public static System.Int16 Parse(System.ReadOnlySpan s, System.Globalization.NumberStyles style = System.Globalization.NumberStyles.Integer, System.IFormatProvider provider = null) { throw null; } public static System.Int16 Parse(string s) { throw null; } public static System.Int16 Parse(string s, System.Globalization.NumberStyles style) { throw null; } public static System.Int16 Parse(string s, System.Globalization.NumberStyles style, System.IFormatProvider provider) { throw null; } @@ -1553,7 +1538,7 @@ public InsufficientMemoryException(string message, System.Exception innerExcepti public override bool Equals(object obj) { throw null; } public override System.Int32 GetHashCode() { throw null; } public System.TypeCode GetTypeCode() { throw null; } - public static System.Int32 Parse(System.ReadOnlySpan s, System.Globalization.NumberStyles style = (System.Globalization.NumberStyles)(7), System.IFormatProvider provider = null) { throw null; } + public static System.Int32 Parse(System.ReadOnlySpan s, System.Globalization.NumberStyles style = System.Globalization.NumberStyles.Integer, System.IFormatProvider provider = null) { throw null; } public static System.Int32 Parse(string s) { throw null; } public static System.Int32 Parse(string s, System.Globalization.NumberStyles style) { throw null; } public static System.Int32 Parse(string s, System.Globalization.NumberStyles style, System.IFormatProvider provider) { throw null; } @@ -1594,7 +1579,7 @@ public InsufficientMemoryException(string message, System.Exception innerExcepti public override bool Equals(object obj) { throw null; } public override int GetHashCode() { throw null; } public System.TypeCode GetTypeCode() { throw null; } - public static System.Int64 Parse(System.ReadOnlySpan s, System.Globalization.NumberStyles style = (System.Globalization.NumberStyles)(7), System.IFormatProvider provider = null) { throw null; } + public static System.Int64 Parse(System.ReadOnlySpan s, System.Globalization.NumberStyles style = System.Globalization.NumberStyles.Integer, System.IFormatProvider provider = null) { throw null; } public static System.Int64 Parse(string s) { throw null; } public static System.Int64 Parse(string s, System.Globalization.NumberStyles style) { throw null; } public static System.Int64 Parse(string s, System.Globalization.NumberStyles style, System.IFormatProvider provider) { throw null; } @@ -1830,7 +1815,7 @@ public partial struct ModuleHandle public System.RuntimeTypeHandle ResolveTypeHandle(int typeToken) { throw null; } public System.RuntimeTypeHandle ResolveTypeHandle(int typeToken, System.RuntimeTypeHandle[] typeInstantiationContext, System.RuntimeTypeHandle[] methodInstantiationContext) { throw null; } } - [System.AttributeUsageAttribute((System.AttributeTargets)(64))] + [System.AttributeUsageAttribute(System.AttributeTargets.Method)] public sealed partial class MTAThreadAttribute : System.Attribute { public MTAThreadAttribute() { } @@ -1867,7 +1852,7 @@ public partial class NewsStyleUriParser : System.UriParser { public NewsStyleUriParser() { } } - [System.AttributeUsageAttribute((System.AttributeTargets)(256), Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Field, Inherited=false)] public sealed partial class NonSerializedAttribute : System.Attribute { public NonSerializedAttribute() { } @@ -1948,7 +1933,7 @@ public ObjectDisposedException(string objectName, string message) { } public string ObjectName { get { throw null; } } public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } } - [System.AttributeUsageAttribute((System.AttributeTargets)(6140), Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Delegate | System.AttributeTargets.Enum | System.AttributeTargets.Event | System.AttributeTargets.Field | System.AttributeTargets.Interface | System.AttributeTargets.Method | System.AttributeTargets.Property | System.AttributeTargets.Struct, Inherited=false)] public sealed partial class ObsoleteAttribute : System.Attribute { public ObsoleteAttribute() { } @@ -1971,7 +1956,7 @@ protected OverflowException(System.Runtime.Serialization.SerializationInfo info, public OverflowException(string message) { } public OverflowException(string message, System.Exception innerException) { } } - [System.AttributeUsageAttribute((System.AttributeTargets)(2048), Inherited=true, AllowMultiple=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Parameter, Inherited=true, AllowMultiple=false)] public sealed partial class ParamArrayAttribute : System.Attribute { public ParamArrayAttribute() { } @@ -1984,6 +1969,20 @@ public PlatformNotSupportedException(string message) { } public PlatformNotSupportedException(string message, System.Exception inner) { } } public delegate bool Predicate(T obj); + public readonly partial struct Range : System.IEquatable + { + private readonly int _dummyPrimitive; + public System.Index End { get { throw null; } } + public System.Index Start { get { throw null; } } + public static System.Range All() { throw null; } + public static System.Range Create(System.Index start, System.Index end) { throw null; } + public override bool Equals(object value) { throw null; } + public bool Equals(System.Range other) { throw null; } + public static System.Range FromStart(System.Index start) { throw null; } + public override int GetHashCode() { throw null; } + public static System.Range ToEnd(System.Index end) { throw null; } + public override string ToString() { throw null; } + } public partial class RankException : System.SystemException { public RankException() { } @@ -2026,9 +2025,9 @@ public readonly ref partial struct ReadOnlySpan public ReadOnlySpan(T[] array, int start, int length) { throw null; } public static System.ReadOnlySpan Empty { get { throw null; } } public bool IsEmpty { get { throw null; } } + public ref readonly T this[System.Index index] { get { throw null; } } public ref readonly T this[int index] { get { throw null; } } - public ref readonly T this[Index index] { get { throw null; } } - public ReadOnlySpan this[Range range] { get { throw null; } } + public System.ReadOnlySpan this[System.Range range] { get { throw null; } } public int Length { get { throw null; } } public void CopyTo(System.Span destination) { } [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] @@ -2118,7 +2117,7 @@ public void GetObjectData(System.Runtime.Serialization.SerializationInfo info, S public override int GetHashCode() { throw null; } public System.TypeCode GetTypeCode() { throw null; } [System.CLSCompliantAttribute(false)] - public static System.SByte Parse(System.ReadOnlySpan s, System.Globalization.NumberStyles style = (System.Globalization.NumberStyles)(7), System.IFormatProvider provider = null) { throw null; } + public static System.SByte Parse(System.ReadOnlySpan s, System.Globalization.NumberStyles style = System.Globalization.NumberStyles.Integer, System.IFormatProvider provider = null) { throw null; } [System.CLSCompliantAttribute(false)] public static System.SByte Parse(string s) { throw null; } [System.CLSCompliantAttribute(false)] @@ -2156,7 +2155,7 @@ public void GetObjectData(System.Runtime.Serialization.SerializationInfo info, S [System.CLSCompliantAttribute(false)] public static bool TryParse(string s, out System.SByte result) { throw null; } } - [System.AttributeUsageAttribute((System.AttributeTargets)(4124), Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Class | System.AttributeTargets.Delegate | System.AttributeTargets.Enum | System.AttributeTargets.Struct, Inherited=false)] public sealed partial class SerializableAttribute : System.Attribute { public SerializableAttribute() { } @@ -2190,7 +2189,7 @@ public SerializableAttribute() { } public static bool operator !=(System.Single left, System.Single right) { throw null; } public static bool operator <(System.Single left, System.Single right) { throw null; } public static bool operator <=(System.Single left, System.Single right) { throw null; } - public static System.Single Parse(System.ReadOnlySpan s, System.Globalization.NumberStyles style = (System.Globalization.NumberStyles)(231), System.IFormatProvider provider = null) { throw null; } + public static System.Single Parse(System.ReadOnlySpan s, System.Globalization.NumberStyles style = System.Globalization.NumberStyles.AllowDecimalPoint | System.Globalization.NumberStyles.AllowExponent | System.Globalization.NumberStyles.AllowLeadingSign | System.Globalization.NumberStyles.AllowLeadingWhite | System.Globalization.NumberStyles.AllowThousands | System.Globalization.NumberStyles.AllowTrailingWhite, System.IFormatProvider provider = null) { throw null; } public static System.Single Parse(string s) { throw null; } public static System.Single Parse(string s, System.Globalization.NumberStyles style) { throw null; } public static System.Single Parse(string s, System.Globalization.NumberStyles style, System.IFormatProvider provider) { throw null; } @@ -2230,9 +2229,9 @@ public readonly ref partial struct Span public Span(T[] array, int start, int length) { throw null; } public static System.Span Empty { get { throw null; } } public bool IsEmpty { get { throw null; } } + public ref T this[System.Index index] { get { throw null; } } public ref T this[int index] { get { throw null; } } - public ref T this[Index index] { get { throw null; } } - public Span this[Range range] { get { throw null; } } + public System.Span this[System.Range range] { get { throw null; } } public int Length { get { throw null; } } public void Clear() { } public void CopyTo(System.Span destination) { } @@ -2270,7 +2269,7 @@ public StackOverflowException() { } public StackOverflowException(string message) { } public StackOverflowException(string message, System.Exception innerException) { } } - [System.AttributeUsageAttribute((System.AttributeTargets)(64))] + [System.AttributeUsageAttribute(System.AttributeTargets.Method)] public sealed partial class STAThreadAttribute : System.Attribute { public STAThreadAttribute() { } @@ -2346,9 +2345,9 @@ public void CopyTo(int sourceIndex, char[] destination, int destinationIndex, in public static System.String Format(System.String format, params object[] args) { throw null; } public System.CharEnumerator GetEnumerator() { throw null; } public override int GetHashCode() { throw null; } + public static int GetHashCode(System.ReadOnlySpan value) { throw null; } + public static int GetHashCode(System.ReadOnlySpan value, System.StringComparison comparisonType) { throw null; } public int GetHashCode(System.StringComparison comparisonType) { throw null; } - public static int GetHashCode(ReadOnlySpan value) { throw null; } - public static int GetHashCode(ReadOnlySpan value, System.StringComparison comparisonType) { throw null; } public System.TypeCode GetTypeCode() { throw null; } public int IndexOf(char value) { throw null; } public int IndexOf(char value, int startIndex) { throw null; } @@ -2406,14 +2405,14 @@ public void CopyTo(int sourceIndex, char[] destination, int destinationIndex, in public System.String Replace(System.String oldValue, System.String newValue) { throw null; } public System.String Replace(System.String oldValue, System.String newValue, bool ignoreCase, System.Globalization.CultureInfo culture) { throw null; } public System.String Replace(System.String oldValue, System.String newValue, System.StringComparison comparisonType) { throw null; } - public string[] Split(char separator, int count, System.StringSplitOptions options = (System.StringSplitOptions)(0)) { throw null; } - public string[] Split(char separator, System.StringSplitOptions options = (System.StringSplitOptions)(0)) { throw null; } + public string[] Split(char separator, int count, System.StringSplitOptions options = System.StringSplitOptions.None) { throw null; } + public string[] Split(char separator, System.StringSplitOptions options = System.StringSplitOptions.None) { throw null; } public string[] Split(params char[] separator) { throw null; } public string[] Split(char[] separator, int count) { throw null; } public string[] Split(char[] separator, int count, System.StringSplitOptions options) { throw null; } public string[] Split(char[] separator, System.StringSplitOptions options) { throw null; } - public string[] Split(System.String separator, int count, System.StringSplitOptions options = (System.StringSplitOptions)(0)) { throw null; } - public string[] Split(System.String separator, System.StringSplitOptions options = (System.StringSplitOptions)(0)) { throw null; } + public string[] Split(System.String separator, int count, System.StringSplitOptions options = System.StringSplitOptions.None) { throw null; } + public string[] Split(System.String separator, System.StringSplitOptions options = System.StringSplitOptions.None) { throw null; } public string[] Split(string[] separator, int count, System.StringSplitOptions options) { throw null; } public string[] Split(string[] separator, System.StringSplitOptions options) { throw null; } public bool StartsWith(char value) { throw null; } @@ -2481,7 +2480,7 @@ protected SystemException(System.Runtime.Serialization.SerializationInfo info, S public SystemException(string message) { } public SystemException(string message, System.Exception innerException) { } } - [System.AttributeUsageAttribute((System.AttributeTargets)(256), Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Field, Inherited=false)] public partial class ThreadStaticAttribute : System.Attribute { public ThreadStaticAttribute() { } @@ -2555,8 +2554,8 @@ public TimeoutException(string message, System.Exception innerException) { } public static System.TimeSpan Parse(System.ReadOnlySpan input, System.IFormatProvider formatProvider = null) { throw null; } public static System.TimeSpan Parse(string s) { throw null; } public static System.TimeSpan Parse(string input, System.IFormatProvider formatProvider) { throw null; } - public static System.TimeSpan ParseExact(System.ReadOnlySpan input, System.ReadOnlySpan format, System.IFormatProvider formatProvider, System.Globalization.TimeSpanStyles styles = (System.Globalization.TimeSpanStyles)(0)) { throw null; } - public static System.TimeSpan ParseExact(System.ReadOnlySpan input, string[] formats, System.IFormatProvider formatProvider, System.Globalization.TimeSpanStyles styles = (System.Globalization.TimeSpanStyles)(0)) { throw null; } + public static System.TimeSpan ParseExact(System.ReadOnlySpan input, System.ReadOnlySpan format, System.IFormatProvider formatProvider, System.Globalization.TimeSpanStyles styles = System.Globalization.TimeSpanStyles.None) { throw null; } + public static System.TimeSpan ParseExact(System.ReadOnlySpan input, string[] formats, System.IFormatProvider formatProvider, System.Globalization.TimeSpanStyles styles = System.Globalization.TimeSpanStyles.None) { throw null; } public static System.TimeSpan ParseExact(string input, string format, System.IFormatProvider formatProvider) { throw null; } public static System.TimeSpan ParseExact(string input, string format, System.IFormatProvider formatProvider, System.Globalization.TimeSpanStyles styles) { throw null; } public static System.TimeSpan ParseExact(string input, string[] formats, System.IFormatProvider formatProvider) { throw null; } @@ -3102,9 +3101,9 @@ protected Type() { } public virtual System.Type MakeArrayType(int rank) { throw null; } public virtual System.Type MakeByRefType() { throw null; } public static System.Type MakeGenericMethodParameter(int position) { throw null; } + public static System.Type MakeGenericSignatureType(System.Type genericTypeDefinition, params System.Type[] typeArguments) { throw null; } public virtual System.Type MakeGenericType(params System.Type[] typeArguments) { throw null; } public virtual System.Type MakePointerType() { throw null; } - public static System.Type MakeGenericSignatureType(System.Type genericTypeDefinition, params System.Type[] typeArguments) { throw null; } public static bool operator ==(System.Type left, System.Type right) { throw null; } public static bool operator !=(System.Type left, System.Type right) { throw null; } public static System.Type ReflectionOnlyGetType(string typeName, bool throwIfNotFound, bool ignoreCase) { throw null; } @@ -3188,7 +3187,7 @@ public TypeUnloadedException(string message, System.Exception innerException) { public override int GetHashCode() { throw null; } public System.TypeCode GetTypeCode() { throw null; } [System.CLSCompliantAttribute(false)] - public static System.UInt16 Parse(System.ReadOnlySpan s, System.Globalization.NumberStyles style = (System.Globalization.NumberStyles)(7), System.IFormatProvider provider = null) { throw null; } + public static System.UInt16 Parse(System.ReadOnlySpan s, System.Globalization.NumberStyles style = System.Globalization.NumberStyles.Integer, System.IFormatProvider provider = null) { throw null; } [System.CLSCompliantAttribute(false)] public static System.UInt16 Parse(string s) { throw null; } [System.CLSCompliantAttribute(false)] @@ -3239,7 +3238,7 @@ public TypeUnloadedException(string message, System.Exception innerException) { public override int GetHashCode() { throw null; } public System.TypeCode GetTypeCode() { throw null; } [System.CLSCompliantAttribute(false)] - public static System.UInt32 Parse(System.ReadOnlySpan s, System.Globalization.NumberStyles style = (System.Globalization.NumberStyles)(7), System.IFormatProvider provider = null) { throw null; } + public static System.UInt32 Parse(System.ReadOnlySpan s, System.Globalization.NumberStyles style = System.Globalization.NumberStyles.Integer, System.IFormatProvider provider = null) { throw null; } [System.CLSCompliantAttribute(false)] public static System.UInt32 Parse(string s) { throw null; } [System.CLSCompliantAttribute(false)] @@ -3290,7 +3289,7 @@ public TypeUnloadedException(string message, System.Exception innerException) { public override int GetHashCode() { throw null; } public System.TypeCode GetTypeCode() { throw null; } [System.CLSCompliantAttribute(false)] - public static System.UInt64 Parse(System.ReadOnlySpan s, System.Globalization.NumberStyles style = (System.Globalization.NumberStyles)(7), System.IFormatProvider provider = null) { throw null; } + public static System.UInt64 Parse(System.ReadOnlySpan s, System.Globalization.NumberStyles style = System.Globalization.NumberStyles.Integer, System.IFormatProvider provider = null) { throw null; } [System.CLSCompliantAttribute(false)] public static System.UInt64 Parse(string s) { throw null; } [System.CLSCompliantAttribute(false)] @@ -3802,8 +3801,8 @@ public abstract partial class MemoryManager : System.Buffers.IMemoryOwner, { protected MemoryManager() { } public virtual System.Memory Memory { get { throw null; } } - protected Memory CreateMemory(int length) { throw null; } - protected Memory CreateMemory(int start, int length) { throw null; } + protected System.Memory CreateMemory(int length) { throw null; } + protected System.Memory CreateMemory(int start, int length) { throw null; } protected abstract void Dispose(bool disposing); public abstract System.Span GetSpan(); public abstract System.Buffers.MemoryHandle Pin(int elementIndex = 0); @@ -3901,8 +3900,8 @@ public partial interface IAsyncEnumerable } public partial interface IAsyncEnumerator : System.IAsyncDisposable { - System.Threading.Tasks.ValueTask MoveNextAsync(); T Current { get; } + System.Threading.Tasks.ValueTask MoveNextAsync(); } public partial interface ICollection : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { @@ -4073,7 +4072,7 @@ void System.Collections.IList.RemoveAt(int index) { } } namespace System.ComponentModel { - [System.AttributeUsageAttribute((System.AttributeTargets)(32767))] + [System.AttributeUsageAttribute(System.AttributeTargets.All)] public partial class DefaultValueAttribute : System.Attribute { public DefaultValueAttribute(bool value) { } @@ -4100,7 +4099,7 @@ public DefaultValueAttribute(ulong value) { } public override int GetHashCode() { throw null; } protected void SetValue(object value) { } } - [System.AttributeUsageAttribute((System.AttributeTargets)(6140))] + [System.AttributeUsageAttribute(System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Delegate | System.AttributeTargets.Enum | System.AttributeTargets.Event | System.AttributeTargets.Field | System.AttributeTargets.Interface | System.AttributeTargets.Method | System.AttributeTargets.Property | System.AttributeTargets.Struct)] public sealed partial class EditorBrowsableAttribute : System.Attribute { public EditorBrowsableAttribute() { } @@ -4136,13 +4135,13 @@ public enum AssemblyVersionCompatibility } namespace System.Diagnostics { - [System.AttributeUsageAttribute((System.AttributeTargets)(68), AllowMultiple=true)] + [System.AttributeUsageAttribute(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=true)] public sealed partial class ConditionalAttribute : System.Attribute { public ConditionalAttribute(string conditionString) { } public string ConditionString { get { throw null; } } } - [System.AttributeUsageAttribute((System.AttributeTargets)(3), AllowMultiple=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Module, AllowMultiple=false)] public sealed partial class DebuggableAttribute : System.Attribute { public DebuggableAttribute(bool isJITTrackingEnabled, bool isJITOptimizerDisabled) { } @@ -4266,8 +4265,8 @@ internal CompareInfo() { } public static System.Globalization.CompareInfo GetCompareInfo(string name) { throw null; } public static System.Globalization.CompareInfo GetCompareInfo(string name, System.Reflection.Assembly assembly) { throw null; } public override int GetHashCode() { throw null; } + public int GetHashCode(System.ReadOnlySpan source, System.Globalization.CompareOptions options) { throw null; } public virtual int GetHashCode(string source, System.Globalization.CompareOptions options) { throw null; } - public int GetHashCode(ReadOnlySpan source, System.Globalization.CompareOptions options) { throw null; } public virtual System.Globalization.SortKey GetSortKey(string source) { throw null; } public virtual System.Globalization.SortKey GetSortKey(string source, System.Globalization.CompareOptions options) { throw null; } public virtual int IndexOf(string source, char value) { throw null; } @@ -5159,15 +5158,15 @@ public virtual void Lock(long position, long length) { } 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[] buffer, 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 virtual void Unlock(long position, long length) { } public override void Write(byte[] array, 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; } + public override System.Threading.Tasks.ValueTask WriteAsync(System.ReadOnlyMemory buffer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public override void WriteByte(byte value) { } } public enum HandleInheritability @@ -5332,7 +5331,7 @@ public virtual void GetObjectData(System.Runtime.Serialization.SerializationInfo public override string ToString() { throw null; } public static System.Reflection.Assembly UnsafeLoadFrom(string assemblyFile) { throw null; } } - [System.AttributeUsageAttribute((System.AttributeTargets)(1), Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Assembly, Inherited=false)] public sealed partial class AssemblyAlgorithmIdAttribute : System.Attribute { public AssemblyAlgorithmIdAttribute(System.Configuration.Assemblies.AssemblyHashAlgorithm algorithmId) { } @@ -5341,13 +5340,13 @@ public AssemblyAlgorithmIdAttribute(uint algorithmId) { } [System.CLSCompliantAttribute(false)] public uint AlgorithmId { get { throw null; } } } - [System.AttributeUsageAttribute((System.AttributeTargets)(1), Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Assembly, Inherited=false)] public sealed partial class AssemblyCompanyAttribute : System.Attribute { public AssemblyCompanyAttribute(string company) { } public string Company { get { throw null; } } } - [System.AttributeUsageAttribute((System.AttributeTargets)(1), Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Assembly, Inherited=false)] public sealed partial class AssemblyConfigurationAttribute : System.Attribute { public AssemblyConfigurationAttribute(string configuration) { } @@ -5358,43 +5357,43 @@ public enum AssemblyContentType Default = 0, WindowsRuntime = 1, } - [System.AttributeUsageAttribute((System.AttributeTargets)(1), Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Assembly, Inherited=false)] public sealed partial class AssemblyCopyrightAttribute : System.Attribute { public AssemblyCopyrightAttribute(string copyright) { } public string Copyright { get { throw null; } } } - [System.AttributeUsageAttribute((System.AttributeTargets)(1), Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Assembly, Inherited=false)] public sealed partial class AssemblyCultureAttribute : System.Attribute { public AssemblyCultureAttribute(string culture) { } public string Culture { get { throw null; } } } - [System.AttributeUsageAttribute((System.AttributeTargets)(1), Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Assembly, Inherited=false)] public sealed partial class AssemblyDefaultAliasAttribute : System.Attribute { public AssemblyDefaultAliasAttribute(string defaultAlias) { } public string DefaultAlias { get { throw null; } } } - [System.AttributeUsageAttribute((System.AttributeTargets)(1), Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Assembly, Inherited=false)] public sealed partial class AssemblyDelaySignAttribute : System.Attribute { public AssemblyDelaySignAttribute(bool delaySign) { } public bool DelaySign { get { throw null; } } } - [System.AttributeUsageAttribute((System.AttributeTargets)(1), Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Assembly, Inherited=false)] public sealed partial class AssemblyDescriptionAttribute : System.Attribute { public AssemblyDescriptionAttribute(string description) { } public string Description { get { throw null; } } } - [System.AttributeUsageAttribute((System.AttributeTargets)(1), Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Assembly, Inherited=false)] public sealed partial class AssemblyFileVersionAttribute : System.Attribute { public AssemblyFileVersionAttribute(string version) { } public string Version { get { throw null; } } } - [System.AttributeUsageAttribute((System.AttributeTargets)(1), Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Assembly, Inherited=false)] public sealed partial class AssemblyFlagsAttribute : System.Attribute { [System.ObsoleteAttribute("This constructor has been deprecated. Please use AssemblyFlagsAttribute(AssemblyNameFlags) instead. https://go.microsoft.com/fwlink/?linkid=14202")] @@ -5408,25 +5407,25 @@ public AssemblyFlagsAttribute(uint flags) { } [System.ObsoleteAttribute("This property has been deprecated. Please use AssemblyFlags instead. https://go.microsoft.com/fwlink/?linkid=14202")] public uint Flags { get { throw null; } } } - [System.AttributeUsageAttribute((System.AttributeTargets)(1), Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Assembly, Inherited=false)] public sealed partial class AssemblyInformationalVersionAttribute : System.Attribute { public AssemblyInformationalVersionAttribute(string informationalVersion) { } public string InformationalVersion { get { throw null; } } } - [System.AttributeUsageAttribute((System.AttributeTargets)(1), Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Assembly, Inherited=false)] public sealed partial class AssemblyKeyFileAttribute : System.Attribute { public AssemblyKeyFileAttribute(string keyFile) { } public string KeyFile { get { throw null; } } } - [System.AttributeUsageAttribute((System.AttributeTargets)(1), Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Assembly, Inherited=false)] public sealed partial class AssemblyKeyNameAttribute : System.Attribute { public AssemblyKeyNameAttribute(string keyName) { } public string KeyName { get { throw null; } } } - [System.AttributeUsageAttribute((System.AttributeTargets)(1), AllowMultiple=true, Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Assembly, AllowMultiple=true, Inherited=false)] public sealed partial class AssemblyMetadataAttribute : System.Attribute { public AssemblyMetadataAttribute(string key, string value) { } @@ -5470,32 +5469,32 @@ public enum AssemblyNameFlags PublicKey = 1, Retargetable = 256, } - [System.AttributeUsageAttribute((System.AttributeTargets)(1), Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Assembly, Inherited=false)] public sealed partial class AssemblyProductAttribute : System.Attribute { public AssemblyProductAttribute(string product) { } public string Product { get { throw null; } } } - [System.AttributeUsageAttribute((System.AttributeTargets)(1), Inherited=false, AllowMultiple=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Assembly, Inherited=false, AllowMultiple=false)] public sealed partial class AssemblySignatureKeyAttribute : System.Attribute { public AssemblySignatureKeyAttribute(string publicKey, string countersignature) { } public string Countersignature { get { throw null; } } public string PublicKey { get { throw null; } } } - [System.AttributeUsageAttribute((System.AttributeTargets)(1), Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Assembly, Inherited=false)] public sealed partial class AssemblyTitleAttribute : System.Attribute { public AssemblyTitleAttribute(string title) { } public string Title { get { throw null; } } } - [System.AttributeUsageAttribute((System.AttributeTargets)(1), Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Assembly, Inherited=false)] public sealed partial class AssemblyTrademarkAttribute : System.Attribute { public AssemblyTrademarkAttribute(string trademark) { } public string Trademark { get { throw null; } } } - [System.AttributeUsageAttribute((System.AttributeTargets)(1), Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Assembly, Inherited=false)] public sealed partial class AssemblyVersionAttribute : System.Attribute { public AssemblyVersionAttribute(string version) { } @@ -5647,7 +5646,7 @@ public partial struct CustomAttributeTypedArgument public static bool operator !=(System.Reflection.CustomAttributeTypedArgument left, System.Reflection.CustomAttributeTypedArgument right) { throw null; } public override string ToString() { throw null; } } - [System.AttributeUsageAttribute((System.AttributeTargets)(1036))] + [System.AttributeUsageAttribute(System.AttributeTargets.Class | System.AttributeTargets.Interface | System.AttributeTargets.Struct)] public sealed partial class DefaultMemberAttribute : System.Attribute { public DefaultMemberAttribute(string memberName) { } @@ -6056,14 +6055,14 @@ public virtual void GetObjectData(System.Runtime.Serialization.SerializationInfo public override string ToString() { throw null; } } public delegate System.Reflection.Module ModuleResolveEventHandler(object sender, System.ResolveEventArgs e); - [System.AttributeUsageAttribute((System.AttributeTargets)(1), AllowMultiple=false, Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Assembly, AllowMultiple=false, Inherited=false)] public sealed partial class ObfuscateAssemblyAttribute : System.Attribute { public ObfuscateAssemblyAttribute(bool assemblyIsPrivate) { } public bool AssemblyIsPrivate { get { throw null; } } public bool StripAfterObfuscation { get { throw null; } set { } } } - [System.AttributeUsageAttribute((System.AttributeTargets)(8157), AllowMultiple=true, Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Delegate | System.AttributeTargets.Enum | System.AttributeTargets.Event | System.AttributeTargets.Field | System.AttributeTargets.Interface | System.AttributeTargets.Method | System.AttributeTargets.Parameter | System.AttributeTargets.Property | System.AttributeTargets.Struct, AllowMultiple=true, Inherited=false)] public sealed partial class ObfuscationAttribute : System.Attribute { public ObfuscationAttribute() { } @@ -6386,7 +6385,7 @@ protected TypeInfo() { } } namespace System.Runtime { - [System.AttributeUsageAttribute((System.AttributeTargets)(1), Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Assembly, Inherited=false)] public sealed partial class AssemblyTargetedPatchBandAttribute : System.Attribute { public AssemblyTargetedPatchBandAttribute(string targetedPatchBand) { } @@ -6417,7 +6416,7 @@ public MemoryFailPoint(int sizeInMegabytes) { } public void Dispose() { } ~MemoryFailPoint() { } } - [System.AttributeUsageAttribute((System.AttributeTargets)(96), AllowMultiple=false, Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Constructor | System.AttributeTargets.Method, AllowMultiple=false, Inherited=false)] public sealed partial class TargetedPatchingOptOutAttribute : System.Attribute { public TargetedPatchingOptOutAttribute(string reason) { } @@ -6426,19 +6425,19 @@ public TargetedPatchingOptOutAttribute(string reason) { } } namespace System.Runtime.CompilerServices { - [System.AttributeUsageAttribute((System.AttributeTargets)(256))] + [System.AttributeUsageAttribute(System.AttributeTargets.Field)] public sealed partial class AccessedThroughPropertyAttribute : System.Attribute { public AccessedThroughPropertyAttribute(string propertyName) { } public string PropertyName { get { throw null; } } } - [System.AttributeUsageAttribute((System.AttributeTargets)(5148), Inherited=false, AllowMultiple=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Class | System.AttributeTargets.Delegate | System.AttributeTargets.Enum | System.AttributeTargets.Interface | System.AttributeTargets.Struct, Inherited=false, AllowMultiple=false)] public sealed partial class AsyncMethodBuilderAttribute : System.Attribute { public AsyncMethodBuilderAttribute(System.Type builderType) { } public System.Type BuilderType { get { throw null; } } } - [System.AttributeUsageAttribute((System.AttributeTargets)(64), Inherited=false, AllowMultiple=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Method, Inherited=false, AllowMultiple=false)] public sealed partial class AsyncStateMachineAttribute : System.Runtime.CompilerServices.StateMachineAttribute { public AsyncStateMachineAttribute(System.Type stateMachineType) : base (default(System.Type)) { } @@ -6470,23 +6469,23 @@ public void SetResult(TResult result) { } public void SetStateMachine(System.Runtime.CompilerServices.IAsyncStateMachine stateMachine) { } public void Start(ref TStateMachine stateMachine) where TStateMachine : System.Runtime.CompilerServices.IAsyncStateMachine { } } - [System.AttributeUsage((System.AttributeTargets)(2048), AllowMultiple = false, Inherited = false)] - public sealed class CallerArgumentExpressionAttribute : System.Attribute + [System.AttributeUsageAttribute(System.AttributeTargets.Parameter, AllowMultiple=false, Inherited=false)] + public sealed partial class CallerArgumentExpressionAttribute : System.Attribute { public CallerArgumentExpressionAttribute(string parameterName) { } public string ParameterName { get { throw null; } } } - [System.AttributeUsageAttribute((System.AttributeTargets)(2048), Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Parameter, Inherited=false)] public sealed partial class CallerFilePathAttribute : System.Attribute { public CallerFilePathAttribute() { } } - [System.AttributeUsageAttribute((System.AttributeTargets)(2048), Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Parameter, Inherited=false)] public sealed partial class CallerLineNumberAttribute : System.Attribute { public CallerLineNumberAttribute() { } } - [System.AttributeUsageAttribute((System.AttributeTargets)(2048), Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Parameter, Inherited=false)] public sealed partial class CallerMemberNameAttribute : System.Attribute { public CallerMemberNameAttribute() { } @@ -6496,19 +6495,19 @@ public enum CompilationRelaxations { NoStringInterning = 8, } - [System.AttributeUsageAttribute((System.AttributeTargets)(71))] + [System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Method | System.AttributeTargets.Module)] public partial class CompilationRelaxationsAttribute : System.Attribute { public CompilationRelaxationsAttribute(int relaxations) { } public CompilationRelaxationsAttribute(System.Runtime.CompilerServices.CompilationRelaxations relaxations) { } public int CompilationRelaxations { get { throw null; } } } - [System.AttributeUsageAttribute((System.AttributeTargets)(32767), Inherited=true)] + [System.AttributeUsageAttribute(System.AttributeTargets.All, Inherited=true)] public sealed partial class CompilerGeneratedAttribute : System.Attribute { public CompilerGeneratedAttribute() { } } - [System.AttributeUsageAttribute((System.AttributeTargets)(4))] + [System.AttributeUsageAttribute(System.AttributeTargets.Class)] public partial class CompilerGlobalScopeAttribute : System.Attribute { public CompilerGlobalScopeAttribute() { } @@ -6582,19 +6581,19 @@ public void OnCompleted(System.Action continuation) { } public void UnsafeOnCompleted(System.Action continuation) { } } } - [System.AttributeUsageAttribute((System.AttributeTargets)(2304), Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Field | System.AttributeTargets.Parameter, Inherited=false)] public abstract partial class CustomConstantAttribute : System.Attribute { protected CustomConstantAttribute() { } public abstract object Value { get; } } - [System.AttributeUsageAttribute((System.AttributeTargets)(2304), Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Field | System.AttributeTargets.Parameter, Inherited=false)] public sealed partial class DateTimeConstantAttribute : System.Runtime.CompilerServices.CustomConstantAttribute { public DateTimeConstantAttribute(long ticks) { } public override object Value { get { throw null; } } } - [System.AttributeUsageAttribute((System.AttributeTargets)(2304), Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Field | System.AttributeTargets.Parameter, Inherited=false)] public sealed partial class DecimalConstantAttribute : System.Attribute { public DecimalConstantAttribute(byte scale, byte sign, int hi, int mid, int low) { } @@ -6602,20 +6601,20 @@ public DecimalConstantAttribute(byte scale, byte sign, int hi, int mid, int low) public DecimalConstantAttribute(byte scale, byte sign, uint hi, uint mid, uint low) { } public decimal Value { get { throw null; } } } - [System.AttributeUsageAttribute((System.AttributeTargets)(1))] + [System.AttributeUsageAttribute(System.AttributeTargets.Assembly)] public sealed partial class DefaultDependencyAttribute : System.Attribute { public DefaultDependencyAttribute(System.Runtime.CompilerServices.LoadHint loadHintArgument) { } public System.Runtime.CompilerServices.LoadHint LoadHint { get { throw null; } } } - [System.AttributeUsageAttribute((System.AttributeTargets)(1), AllowMultiple=true)] + [System.AttributeUsageAttribute(System.AttributeTargets.Assembly, AllowMultiple=true)] public sealed partial class DependencyAttribute : System.Attribute { public DependencyAttribute(string dependentAssemblyArgument, System.Runtime.CompilerServices.LoadHint loadHintArgument) { } public string DependentAssembly { get { throw null; } } public System.Runtime.CompilerServices.LoadHint LoadHint { get { throw null; } } } - [System.AttributeUsageAttribute((System.AttributeTargets)(1), AllowMultiple=false, Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Assembly, AllowMultiple=false, Inherited=false)] public sealed partial class DisablePrivateReflectionAttribute : System.Attribute { public DisablePrivateReflectionAttribute() { } @@ -6624,17 +6623,17 @@ public partial class DiscardableAttribute : System.Attribute { public DiscardableAttribute() { } } - [System.AttributeUsageAttribute((System.AttributeTargets)(69))] + [System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Method)] public sealed partial class ExtensionAttribute : System.Attribute { public ExtensionAttribute() { } } - [System.AttributeUsageAttribute((System.AttributeTargets)(256))] + [System.AttributeUsageAttribute(System.AttributeTargets.Field)] public sealed partial class FixedAddressValueTypeAttribute : System.Attribute { public FixedAddressValueTypeAttribute() { } } - [System.AttributeUsageAttribute((System.AttributeTargets)(256), Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Field, Inherited=false)] public sealed partial class FixedBufferAttribute : System.Attribute { public FixedBufferAttribute(System.Type elementType, int length) { } @@ -6654,7 +6653,7 @@ public partial interface ICriticalNotifyCompletion : System.Runtime.CompilerServ { void UnsafeOnCompleted(System.Action continuation); } - [System.AttributeUsageAttribute((System.AttributeTargets)(128), Inherited=true)] + [System.AttributeUsageAttribute(System.AttributeTargets.Property, Inherited=true)] public sealed partial class IndexerNameAttribute : System.Attribute { public IndexerNameAttribute(string indexerName) { } @@ -6663,15 +6662,15 @@ public partial interface INotifyCompletion { void OnCompleted(System.Action continuation); } - [System.AttributeUsageAttribute((System.AttributeTargets)(1), AllowMultiple=true, Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Assembly, AllowMultiple=true, Inherited=false)] public sealed partial class InternalsVisibleToAttribute : System.Attribute { public InternalsVisibleToAttribute(string assemblyName) { } public bool AllInternalsVisible { get { throw null; } set { } } public string AssemblyName { get { throw null; } } } - [System.AttributeUsageAttribute((System.AttributeTargets)(8))] [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] + [System.AttributeUsageAttribute(System.AttributeTargets.Struct)] public sealed partial class IsByRefLikeAttribute : System.Attribute { public IsByRefLikeAttribute() { } @@ -6679,7 +6678,7 @@ public IsByRefLikeAttribute() { } public static partial class IsConst { } - [System.AttributeUsageAttribute((System.AttributeTargets)(32767), Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.All, Inherited=false)] [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] public sealed partial class IsReadOnlyAttribute : System.Attribute { @@ -6692,7 +6691,7 @@ public partial interface IStrongBox public static partial class IsVolatile { } - [System.AttributeUsageAttribute((System.AttributeTargets)(64), Inherited=false, AllowMultiple=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Method, Inherited=false, AllowMultiple=false)] public sealed partial class IteratorStateMachineAttribute : System.Runtime.CompilerServices.StateMachineAttribute { public IteratorStateMachineAttribute(System.Type stateMachineType) : base (default(System.Type)) { } @@ -6715,7 +6714,7 @@ public enum MethodCodeType OPTIL = 2, Runtime = 3, } - [System.AttributeUsageAttribute((System.AttributeTargets)(96), Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Constructor | System.AttributeTargets.Method, Inherited=false)] public sealed partial class MethodImplAttribute : System.Attribute { public System.Runtime.CompilerServices.MethodCodeType MethodCodeType; @@ -6737,14 +6736,14 @@ public enum MethodImplOptions Synchronized = 32, Unmanaged = 4, } - [System.AttributeUsageAttribute((System.AttributeTargets)(1), AllowMultiple=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Assembly, AllowMultiple=false)] public sealed partial class ReferenceAssemblyAttribute : System.Attribute { public ReferenceAssemblyAttribute() { } public ReferenceAssemblyAttribute(string description) { } public string Description { get { throw null; } } } - [System.AttributeUsageAttribute((System.AttributeTargets)(1), Inherited=false, AllowMultiple=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Assembly, Inherited=false, AllowMultiple=false)] public sealed partial class RuntimeCompatibilityAttribute : System.Attribute { public RuntimeCompatibilityAttribute() { } @@ -6788,18 +6787,18 @@ public RuntimeWrappedException(object thrownObject) { } public object WrappedException { get { throw null; } } public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } } - [System.AttributeUsageAttribute((System.AttributeTargets)(972))] + [System.AttributeUsageAttribute(System.AttributeTargets.Class | System.AttributeTargets.Event | System.AttributeTargets.Field | System.AttributeTargets.Method | System.AttributeTargets.Property | System.AttributeTargets.Struct)] public sealed partial class SpecialNameAttribute : System.Attribute { public SpecialNameAttribute() { } } - [System.AttributeUsageAttribute((System.AttributeTargets)(64), Inherited=false, AllowMultiple=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Method, Inherited=false, AllowMultiple=false)] public partial class StateMachineAttribute : System.Attribute { public StateMachineAttribute(System.Type stateMachineType) { } public System.Type StateMachineType { get { throw null; } } } - [System.AttributeUsageAttribute((System.AttributeTargets)(1), Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Assembly, Inherited=false)] public sealed partial class StringFreezingAttribute : System.Attribute { public StringFreezingAttribute() { } @@ -6811,7 +6810,7 @@ public StrongBox() { } public StrongBox(T value) { } object System.Runtime.CompilerServices.IStrongBox.Value { get { throw null; } set { } } } - [System.AttributeUsageAttribute((System.AttributeTargets)(3))] + [System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Module)] public sealed partial class SuppressIldasmAttribute : System.Attribute { public SuppressIldasmAttribute() { } @@ -6832,26 +6831,26 @@ public void UnsafeOnCompleted(System.Action continuation) { } public void OnCompleted(System.Action continuation) { } public void UnsafeOnCompleted(System.Action continuation) { } } - [System.AttributeUsageAttribute((System.AttributeTargets)(11148))] + [System.AttributeUsageAttribute(System.AttributeTargets.Class | System.AttributeTargets.Event | System.AttributeTargets.Field | System.AttributeTargets.Parameter | System.AttributeTargets.Property | System.AttributeTargets.ReturnValue | System.AttributeTargets.Struct)] [System.CLSCompliantAttribute(false)] public sealed partial class TupleElementNamesAttribute : System.Attribute { public TupleElementNamesAttribute(string[] transformNames) { } public System.Collections.Generic.IList TransformNames { get { throw null; } } } - [System.AttributeUsageAttribute((System.AttributeTargets)(5148), Inherited=false, AllowMultiple=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Class | System.AttributeTargets.Delegate | System.AttributeTargets.Enum | System.AttributeTargets.Interface | System.AttributeTargets.Struct, Inherited=false, AllowMultiple=false)] public sealed partial class TypeForwardedFromAttribute : System.Attribute { public TypeForwardedFromAttribute(string assemblyFullName) { } public string AssemblyFullName { get { throw null; } } } - [System.AttributeUsageAttribute((System.AttributeTargets)(1), AllowMultiple=true, Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Assembly, AllowMultiple=true, Inherited=false)] public sealed partial class TypeForwardedToAttribute : System.Attribute { public TypeForwardedToAttribute(System.Type destination) { } public System.Type Destination { get { throw null; } } } - [System.AttributeUsageAttribute((System.AttributeTargets)(8))] + [System.AttributeUsageAttribute(System.AttributeTargets.Struct)] public sealed partial class UnsafeValueTypeAttribute : System.Attribute { public UnsafeValueTypeAttribute() { } @@ -6905,12 +6904,12 @@ public abstract partial class CriticalFinalizerObject protected CriticalFinalizerObject() { } ~CriticalFinalizerObject() { } } - [System.AttributeUsageAttribute((System.AttributeTargets)(96), Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Constructor | System.AttributeTargets.Method, Inherited=false)] public sealed partial class PrePrepareMethodAttribute : System.Attribute { public PrePrepareMethodAttribute() { } } - [System.AttributeUsageAttribute((System.AttributeTargets)(1133), Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Interface | System.AttributeTargets.Method | System.AttributeTargets.Struct, Inherited=false)] public sealed partial class ReliabilityContractAttribute : System.Attribute { public ReliabilityContractAttribute(System.Runtime.ConstrainedExecution.Consistency consistencyGuarantee, System.Runtime.ConstrainedExecution.Cer cer) { } @@ -6933,7 +6932,7 @@ public partial class FirstChanceExceptionEventArgs : System.EventArgs public FirstChanceExceptionEventArgs(System.Exception exception) { } public System.Exception Exception { get { throw null; } } } - [System.AttributeUsageAttribute((System.AttributeTargets)(64), AllowMultiple=false, Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Method, AllowMultiple=false, Inherited=false)] public sealed partial class HandleProcessCorruptedStateExceptionsAttribute : System.Attribute { public HandleProcessCorruptedStateExceptionsAttribute() { } @@ -6948,7 +6947,7 @@ public enum CharSet None = 1, Unicode = 3, } - [System.AttributeUsageAttribute((System.AttributeTargets)(5597), Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Delegate | System.AttributeTargets.Enum | System.AttributeTargets.Field | System.AttributeTargets.Interface | System.AttributeTargets.Method | System.AttributeTargets.Property | System.AttributeTargets.Struct, Inherited=false)] public sealed partial class ComVisibleAttribute : System.Attribute { public ComVisibleAttribute(bool visibility) { } @@ -6978,7 +6977,7 @@ public ExternalException(string message, int errorCode) { } public virtual int ErrorCode { get { throw null; } } public override string ToString() { throw null; } } - [System.AttributeUsageAttribute((System.AttributeTargets)(256), Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Field, Inherited=false)] public sealed partial class FieldOffsetAttribute : System.Attribute { public FieldOffsetAttribute(int offset) { } @@ -7009,7 +7008,7 @@ public enum GCHandleType Weak = 0, WeakTrackResurrection = 1, } - [System.AttributeUsageAttribute((System.AttributeTargets)(2048), Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Parameter, Inherited=false)] public sealed partial class InAttribute : System.Attribute { public InAttribute() { } @@ -7020,7 +7019,7 @@ public enum LayoutKind Explicit = 2, Sequential = 0, } - [System.AttributeUsageAttribute((System.AttributeTargets)(2048), Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Parameter, Inherited=false)] public sealed partial class OutAttribute : System.Attribute { public OutAttribute() { } @@ -7042,7 +7041,7 @@ protected virtual void Dispose(bool disposing) { } protected void SetHandle(System.IntPtr handle) { } public void SetHandleAsInvalid() { } } - [System.AttributeUsageAttribute((System.AttributeTargets)(12), Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Class | System.AttributeTargets.Struct, Inherited=false)] public sealed partial class StructLayoutAttribute : System.Attribute { public System.Runtime.InteropServices.CharSet CharSet; @@ -7055,11 +7054,10 @@ public StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind layoutKin } namespace System.Runtime.Remoting { - public class ObjectHandle : MarshalByRefObject + public partial class ObjectHandle : System.MarshalByRefObject { - private ObjectHandle() { } - public ObjectHandle(Object o) { } - public Object Unwrap() { throw null; } + public ObjectHandle(object o) { } + public object Unwrap() { throw null; } } } namespace System.Runtime.Serialization @@ -7101,27 +7099,27 @@ public partial interface ISerializable { void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context); } - [System.AttributeUsageAttribute((System.AttributeTargets)(64), Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Method, Inherited=false)] public sealed partial class OnDeserializedAttribute : System.Attribute { public OnDeserializedAttribute() { } } - [System.AttributeUsageAttribute((System.AttributeTargets)(64), Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Method, Inherited=false)] public sealed partial class OnDeserializingAttribute : System.Attribute { public OnDeserializingAttribute() { } } - [System.AttributeUsageAttribute((System.AttributeTargets)(64), Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Method, Inherited=false)] public sealed partial class OnSerializedAttribute : System.Attribute { public OnSerializedAttribute() { } } - [System.AttributeUsageAttribute((System.AttributeTargets)(64), Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Method, Inherited=false)] public sealed partial class OnSerializingAttribute : System.Attribute { public OnSerializingAttribute() { } } - [System.AttributeUsageAttribute((System.AttributeTargets)(256), Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Field, Inherited=false)] public sealed partial class OptionalFieldAttribute : System.Attribute { public OptionalFieldAttribute() { } @@ -7240,7 +7238,7 @@ public enum StreamingContextStates } namespace System.Runtime.Versioning { - [System.AttributeUsageAttribute((System.AttributeTargets)(1), AllowMultiple=false, Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Assembly, AllowMultiple=false, Inherited=false)] public sealed partial class TargetFrameworkAttribute : System.Attribute { public TargetFrameworkAttribute(string frameworkName) { } @@ -7250,7 +7248,7 @@ public TargetFrameworkAttribute(string frameworkName) { } } namespace System.Security { - [System.AttributeUsageAttribute((System.AttributeTargets)(1), AllowMultiple=false, Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Assembly, AllowMultiple=false, Inherited=false)] public sealed partial class AllowPartiallyTrustedCallersAttribute : System.Attribute { public AllowPartiallyTrustedCallersAttribute() { } @@ -7261,7 +7259,7 @@ public enum PartialTrustVisibilityLevel NotVisibleByDefault = 1, VisibleToAllHosts = 0, } - [System.AttributeUsageAttribute((System.AttributeTargets)(5501), AllowMultiple=false, Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Delegate | System.AttributeTargets.Enum | System.AttributeTargets.Field | System.AttributeTargets.Interface | System.AttributeTargets.Method | System.AttributeTargets.Struct, AllowMultiple=false, Inherited=false)] public sealed partial class SecurityCriticalAttribute : System.Attribute { public SecurityCriticalAttribute() { } @@ -7296,7 +7294,7 @@ public SecurityException(string message, System.Type type, string state) { } public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } public override string ToString() { throw null; } } - [System.AttributeUsageAttribute((System.AttributeTargets)(1), AllowMultiple=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Assembly, AllowMultiple=false)] public sealed partial class SecurityRulesAttribute : System.Attribute { public SecurityRulesAttribute(System.Security.SecurityRuleSet ruleSet) { } @@ -7309,28 +7307,27 @@ public enum SecurityRuleSet : byte Level2 = (byte)2, None = (byte)0, } - [System.AttributeUsageAttribute((System.AttributeTargets)(5500), AllowMultiple=false, Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Delegate | System.AttributeTargets.Enum | System.AttributeTargets.Field | System.AttributeTargets.Interface | System.AttributeTargets.Method | System.AttributeTargets.Struct, AllowMultiple=false, Inherited=false)] public sealed partial class SecuritySafeCriticalAttribute : System.Attribute { public SecuritySafeCriticalAttribute() { } } - [System.AttributeUsageAttribute((System.AttributeTargets)(1), AllowMultiple=false, Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Assembly, AllowMultiple=false, Inherited=false)] public sealed partial class SecurityTransparentAttribute : System.Attribute { public SecurityTransparentAttribute() { } } - [System.AttributeUsageAttribute((System.AttributeTargets)(5501), AllowMultiple=false, Inherited=false)] - [System.ObsoleteAttribute("SecurityTreatAsSafe is only used for .NET 2.0 transparency compatibility. Please use the SecuritySafeCriticalAttribute instead.")] + [System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Delegate | System.AttributeTargets.Enum | System.AttributeTargets.Field | System.AttributeTargets.Interface | System.AttributeTargets.Method | System.AttributeTargets.Struct, AllowMultiple=false, Inherited=false)] public sealed partial class SecurityTreatAsSafeAttribute : System.Attribute { public SecurityTreatAsSafeAttribute() { } } - [System.AttributeUsageAttribute((System.AttributeTargets)(5188), AllowMultiple=true, Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Class | System.AttributeTargets.Delegate | System.AttributeTargets.Interface | System.AttributeTargets.Method, AllowMultiple=true, Inherited=false)] public sealed partial class SuppressUnmanagedCodeSecurityAttribute : System.Attribute { public SuppressUnmanagedCodeSecurityAttribute() { } } - [System.AttributeUsageAttribute((System.AttributeTargets)(2), AllowMultiple=true, Inherited=false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Module, AllowMultiple=true, Inherited=false)] public sealed partial class UnverifiableCodeAttribute : System.Attribute { public UnverifiableCodeAttribute() { } @@ -7684,18 +7681,13 @@ public StringBuilder(string value, int startIndex, int length, int capacity) { } public System.Text.StringBuilder AppendJoin(string separator, System.Collections.Generic.IEnumerable values) { throw null; } public System.Text.StringBuilder AppendLine() { throw null; } public System.Text.StringBuilder AppendLine(string value) { throw null; } - public struct ChunkEnumerator - { - public ChunkEnumerator GetEnumerator() { throw null; } - public bool MoveNext() { throw null; } - public ReadOnlyMemory Current { get { throw null; } } - } public System.Text.StringBuilder Clear() { throw null; } public void CopyTo(int sourceIndex, char[] destination, int destinationIndex, int count) { } public void CopyTo(int sourceIndex, System.Span destination, int count) { } public int EnsureCapacity(int capacity) { throw null; } public bool Equals(System.ReadOnlySpan span) { throw null; } public bool Equals(System.Text.StringBuilder sb) { throw null; } + public System.Text.StringBuilder.ChunkEnumerator GetChunks() { throw null; } public System.Text.StringBuilder Insert(int index, bool value) { throw null; } public System.Text.StringBuilder Insert(int index, byte value) { throw null; } public System.Text.StringBuilder Insert(int index, char value) { throw null; } @@ -7719,7 +7711,6 @@ public void CopyTo(int sourceIndex, System.Span destination, int count) { public System.Text.StringBuilder Insert(int index, uint value) { throw null; } [System.CLSCompliantAttribute(false)] public System.Text.StringBuilder Insert(int index, ulong value) { throw null; } - public ChunkEnumerator GetChunks() { throw null; } public System.Text.StringBuilder Remove(int startIndex, int length) { throw null; } public System.Text.StringBuilder Replace(char oldChar, char newChar) { throw null; } public System.Text.StringBuilder Replace(char oldChar, char newChar, int startIndex, int count) { throw null; } @@ -7728,6 +7719,12 @@ public void CopyTo(int sourceIndex, System.Span destination, int count) { void System.Runtime.Serialization.ISerializable.GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } public override string ToString() { throw null; } public string ToString(int startIndex, int length) { throw null; } + public partial struct ChunkEnumerator + { + public System.ReadOnlyMemory Current { get { throw null; } } + public System.Text.StringBuilder.ChunkEnumerator GetEnumerator() { throw null; } + public bool MoveNext() { throw null; } + } } } namespace System.Threading @@ -7749,8 +7746,8 @@ public readonly partial struct CancellationToken public System.Threading.CancellationTokenRegistration Register(System.Action callback, bool useSynchronizationContext) { throw null; } public System.Threading.CancellationTokenRegistration Register(System.Action callback, object state) { throw null; } public System.Threading.CancellationTokenRegistration Register(System.Action callback, object state, bool useSynchronizationContext) { throw null; } - public System.Threading.CancellationTokenRegistration UnsafeRegister(System.Action callback, object state) { throw null; } public void ThrowIfCancellationRequested() { } + public System.Threading.CancellationTokenRegistration UnsafeRegister(System.Action callback, object state) { throw null; } } public readonly partial struct CancellationTokenRegistration : System.IDisposable, System.IEquatable { @@ -7762,9 +7759,9 @@ public void Dispose() { } public override bool Equals(object obj) { throw null; } public bool Equals(System.Threading.CancellationTokenRegistration other) { throw null; } public override int GetHashCode() { throw null; } - public bool Unregister() { throw null; } public static bool operator ==(System.Threading.CancellationTokenRegistration left, System.Threading.CancellationTokenRegistration right) { throw null; } public static bool operator !=(System.Threading.CancellationTokenRegistration left, System.Threading.CancellationTokenRegistration right) { throw null; } + public bool Unregister() { throw null; } } public enum LazyThreadSafetyMode { @@ -8202,14 +8199,14 @@ public partial struct ManualResetValueTaskSourceCore private TResult _result; private object _dummy; private int _dummyPrimitive; - public TResult GetResult(short token) { throw null; } - public ValueTaskSourceStatus GetStatus(short token) { throw null; } - public void OnCompleted(Action continuation, object state, short token, ValueTaskSourceOnCompletedFlags flags) { throw null; } - public void Reset() { throw null; } - public bool RunContinuationsAsynchronously { get { throw null; } set { throw null; } } - public void SetException(System.Exception error) { throw null; } - public void SetResult(TResult result) { throw null; } + public bool RunContinuationsAsynchronously { get { throw null; } set { } } public short Version { get { throw null; } } + public TResult GetResult(short token) { throw null; } + public System.Threading.Tasks.Sources.ValueTaskSourceStatus GetStatus(short token) { throw null; } + public void OnCompleted(System.Action continuation, object state, short token, System.Threading.Tasks.Sources.ValueTaskSourceOnCompletedFlags flags) { } + public void Reset() { } + public void SetException(System.Exception error) { } + public void SetResult(TResult result) { } } [System.FlagsAttribute] public enum ValueTaskSourceOnCompletedFlags