diff --git a/src/libraries/System.Private.CoreLib/src/System/Decimal.cs b/src/libraries/System.Private.CoreLib/src/System/Decimal.cs index 8b469e385b13d8..cc7354014f489c 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Decimal.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Decimal.cs @@ -1813,6 +1813,7 @@ private static bool TryConvertTo(decimal value, [MaybeNullWhen(false)] o // IParsable // + /// public static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out decimal result) => TryParse(s, NumberStyles.Number, provider, out result); // diff --git a/src/libraries/System.Private.CoreLib/src/System/Double.cs b/src/libraries/System.Private.CoreLib/src/System/Double.cs index 75580d6a88c8ba..0d2826a171be2d 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Double.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Double.cs @@ -1411,6 +1411,7 @@ private static bool TryConvertTo(double value, [MaybeNullWhen(false)] ou // IParsable // + /// public static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out double result) => TryParse(s, NumberStyles.Float | NumberStyles.AllowThousands, provider, out result); // diff --git a/src/libraries/System.Private.CoreLib/src/System/Enum.cs b/src/libraries/System.Private.CoreLib/src/System/Enum.cs index cd4535867b0334..7e1ac66a01087c 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Enum.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Enum.cs @@ -327,10 +327,10 @@ public static Array GetValues(Type enumType) /// /// An enumeration type. /// /// - /// This method can be used to get enumeration values when creating an array of the enumeration type is challenging. - /// For example, or on a platform where runtime codegen is not available. + /// You can use this method to get enumeration values when it's hard to create an array of the enumeration type. + /// For example, you might use this method for the enumeration or on a platform where run-time code generation is not available. /// - /// An array that contains the values of the underlying type constants in enumType. + /// An array that contains the values of the underlying type constants in . public static Array GetValuesAsUnderlyingType() where TEnum : struct, Enum => typeof(TEnum).GetEnumValuesAsUnderlyingType(); @@ -339,16 +339,14 @@ public static Array GetValuesAsUnderlyingType() where TEnum : struct, Enu /// /// An enumeration type. /// - /// This method can be used to get enumeration values when creating an array of the enumeration type is challenging. - /// For example, or on a platform where runtime codegen is not available. + /// You can use this method to get enumeration values when it's hard to create an array of the enumeration type. + /// For example, you might use this method for the enumeration or on a platform where run-time code generation is not available. /// /// An array that contains the values of the underlying type constants in . - /// - /// Thrown when the enumeration type is null. - /// - /// - /// Thrown when the type is not an enumeration type. - /// + /// + /// is null. + /// + /// is not an enumeration type. public static Array GetValuesAsUnderlyingType(Type enumType) { ArgumentNullException.ThrowIfNull(enumType); diff --git a/src/libraries/System.Private.CoreLib/src/System/Half.cs b/src/libraries/System.Private.CoreLib/src/System/Half.cs index ecab10dbc00d66..2e71e336928b71 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Half.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Half.cs @@ -1888,6 +1888,7 @@ private static bool TryConvertTo(Half value, [MaybeNullWhen(false)] out // IParsable // + /// public static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out Half result) => TryParse(s, DefaultParseStyle, provider, out result); // diff --git a/src/libraries/System.Private.CoreLib/src/System/Int128.cs b/src/libraries/System.Private.CoreLib/src/System/Int128.cs index 12083208808100..cbfeeb9b8ba6e3 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Int128.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Int128.cs @@ -2013,6 +2013,7 @@ static bool INumberBase.TryConvertToTruncating(Int128 value, [Ma // IParsable // + /// public static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out Int128 result) => TryParse(s, NumberStyles.Integer, provider, out result); // diff --git a/src/libraries/System.Private.CoreLib/src/System/Int16.cs b/src/libraries/System.Private.CoreLib/src/System/Int16.cs index 94fe0e4844f084..67183c0b1b5f7e 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Int16.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Int16.cs @@ -1355,6 +1355,7 @@ static bool INumberBase.TryConvertToTruncating(short value, [Mayb // IParsable // + /// public static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out short result) => TryParse(s, NumberStyles.Integer, provider, out result); // diff --git a/src/libraries/System.Private.CoreLib/src/System/Int32.cs b/src/libraries/System.Private.CoreLib/src/System/Int32.cs index 7b7c3f2765fb10..5c701e0fca22eb 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Int32.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Int32.cs @@ -1367,6 +1367,7 @@ static bool INumberBase.TryConvertToTruncating(int value, [MaybeNul // IParsable // + /// public static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out int result) => TryParse(s, NumberStyles.Integer, provider, out result); // diff --git a/src/libraries/System.Private.CoreLib/src/System/Int64.cs b/src/libraries/System.Private.CoreLib/src/System/Int64.cs index 8752d93c2f8372..464ebb4d1181fa 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Int64.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Int64.cs @@ -1360,6 +1360,7 @@ static bool INumberBase.TryConvertToTruncating(long value, [MaybeN // IParsable // + /// public static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out long result) => TryParse(s, NumberStyles.Integer, provider, out result); // diff --git a/src/libraries/System.Private.CoreLib/src/System/IntPtr.cs b/src/libraries/System.Private.CoreLib/src/System/IntPtr.cs index 3fbed0cea35200..bf57124154482d 100644 --- a/src/libraries/System.Private.CoreLib/src/System/IntPtr.cs +++ b/src/libraries/System.Private.CoreLib/src/System/IntPtr.cs @@ -223,6 +223,7 @@ public static bool TryParse([NotNullWhen(true)] string? s, out nint result) return nint_t.TryParse(s, out Unsafe.As(ref result)); } + /// public static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out nint result) { Unsafe.SkipInit(out result); diff --git a/src/libraries/System.Private.CoreLib/src/System/SByte.cs b/src/libraries/System.Private.CoreLib/src/System/SByte.cs index afd9b04f08e265..ee9df96053b4cc 100644 --- a/src/libraries/System.Private.CoreLib/src/System/SByte.cs +++ b/src/libraries/System.Private.CoreLib/src/System/SByte.cs @@ -1320,6 +1320,7 @@ static bool INumberBase.TryConvertToTruncating(sbyte value, [Mayb // IParsable // + /// public static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out sbyte result) => TryParse(s, NumberStyles.Integer, provider, out result); // diff --git a/src/libraries/System.Private.CoreLib/src/System/Single.cs b/src/libraries/System.Private.CoreLib/src/System/Single.cs index 54e1ef148e9f11..2b4d59700000c8 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Single.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Single.cs @@ -1391,6 +1391,7 @@ private static bool TryConvertTo(float value, [MaybeNullWhen(false)] out // IParsable // + /// public static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out float result) => TryParse(s, NumberStyles.Float | NumberStyles.AllowThousands, provider, out result); // diff --git a/src/libraries/System.Private.CoreLib/src/System/Type.cs b/src/libraries/System.Private.CoreLib/src/System/Type.cs index e7a64d26f6827c..5a7ebed457d7d1 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Type.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Type.cs @@ -527,16 +527,14 @@ public virtual Array GetEnumValues() } /// - /// Retrieves an array of the values of the underlying type constants in a specified enumeration type. + /// Retrieves an array of the values of the underlying type constants of this enumeration type. /// /// - /// This method can be used to get enumeration values when creating an array of the enumeration type is challenging. - /// For example, or on a platform where runtime codegen is not available. + /// You can use this method to get enumeration values when it's hard to create an array of the enumeration type. + /// For example, you might use this method for the enumeration or on a platform where run-time code generation is not available. /// - /// An array that contains the values of the underlying type constants in enumType. - /// - /// Thrown when the type is not an enumeration type. - /// + /// An array that contains the values of the underlying type constants in this enumeration type. + /// This type is not an enumeration type. public virtual Array GetEnumValuesAsUnderlyingType() => throw new NotSupportedException(SR.NotSupported_SubclassOverride); [RequiresDynamicCode("The code for an array of the specified type might not be available.")] diff --git a/src/libraries/System.Private.CoreLib/src/System/UInt128.cs b/src/libraries/System.Private.CoreLib/src/System/UInt128.cs index fb30f2c9996a21..0ae4d6bee34004 100644 --- a/src/libraries/System.Private.CoreLib/src/System/UInt128.cs +++ b/src/libraries/System.Private.CoreLib/src/System/UInt128.cs @@ -2023,6 +2023,7 @@ static bool INumberBase.TryConvertToTruncating(UInt128 value, [ // IParsable // + /// public static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out UInt128 result) => TryParse(s, NumberStyles.Integer, provider, out result); // diff --git a/src/libraries/System.Private.CoreLib/src/System/UInt16.cs b/src/libraries/System.Private.CoreLib/src/System/UInt16.cs index 5e50f54f64193d..025a6adddea1c9 100644 --- a/src/libraries/System.Private.CoreLib/src/System/UInt16.cs +++ b/src/libraries/System.Private.CoreLib/src/System/UInt16.cs @@ -1170,6 +1170,7 @@ static bool INumberBase.TryConvertToTruncating(ushort value, [Ma // IParsable // + /// public static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out ushort result) => TryParse(s, NumberStyles.Integer, provider, out result); // diff --git a/src/libraries/System.Private.CoreLib/src/System/UInt32.cs b/src/libraries/System.Private.CoreLib/src/System/UInt32.cs index 4f137f25dd3037..a07509d7e61499 100644 --- a/src/libraries/System.Private.CoreLib/src/System/UInt32.cs +++ b/src/libraries/System.Private.CoreLib/src/System/UInt32.cs @@ -1179,6 +1179,7 @@ static bool INumberBase.TryConvertToTruncating(uint value, [MaybeN // IParsable // + /// public static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out uint result) => TryParse(s, NumberStyles.Integer, provider, out result); // diff --git a/src/libraries/System.Private.CoreLib/src/System/UInt64.cs b/src/libraries/System.Private.CoreLib/src/System/UInt64.cs index c3f210e350dad1..15cff1631bab04 100644 --- a/src/libraries/System.Private.CoreLib/src/System/UInt64.cs +++ b/src/libraries/System.Private.CoreLib/src/System/UInt64.cs @@ -1172,6 +1172,7 @@ static bool INumberBase.TryConvertToTruncating(ulong value, [Mayb // IParsable // + /// public static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out ulong result) => TryParse(s, NumberStyles.Integer, provider, out result); // diff --git a/src/libraries/System.Private.CoreLib/src/System/UIntPtr.cs b/src/libraries/System.Private.CoreLib/src/System/UIntPtr.cs index 04c8384c34957d..b0458bf60ac528 100644 --- a/src/libraries/System.Private.CoreLib/src/System/UIntPtr.cs +++ b/src/libraries/System.Private.CoreLib/src/System/UIntPtr.cs @@ -219,6 +219,7 @@ public static bool TryParse([NotNullWhen(true)] string? s, out nuint result) return nuint_t.TryParse(s, out Unsafe.As(ref result)); } + /// public static bool TryParse(ReadOnlySpan s, IFormatProvider? provider, out nuint result) { Unsafe.SkipInit(out result);