diff --git a/src/libraries/System.Private.CoreLib/src/System/Half.cs b/src/libraries/System.Private.CoreLib/src/System/Half.cs index 2e71e336928b71..9450d669ce7188 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Half.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Half.cs @@ -340,7 +340,7 @@ public static Half Parse(ReadOnlySpan s, NumberStyles style = DefaultParse } /// - /// Tries to parses a from a in the default parse style. + /// Tries to parse a from a in the default parse style. /// /// The input to be parsed. /// The equivalent value representing the input string if the parse was successful. If the input exceeds Half's range, a or is returned. If the parse was unsuccessful, a default value is returned. @@ -356,7 +356,7 @@ public static bool TryParse([NotNullWhen(true)] string? s, out Half result) } /// - /// Tries to parses a from a in the default parse style. + /// Tries to parse a from a in the default parse style. /// /// The input to be parsed. /// The equivalent value representing the input string if the parse was successful. If the input exceeds Half's range, a or is returned. If the parse was unsuccessful, a default value is returned. diff --git a/src/libraries/System.Private.CoreLib/src/System/IParsable.cs b/src/libraries/System.Private.CoreLib/src/System/IParsable.cs index e2891fbd689475..f53fbec7327848 100644 --- a/src/libraries/System.Private.CoreLib/src/System/IParsable.cs +++ b/src/libraries/System.Private.CoreLib/src/System/IParsable.cs @@ -19,7 +19,7 @@ public interface IParsable /// is not representable by . static abstract TSelf Parse(string s, IFormatProvider? provider); - /// Tries to parses a string into a value. + /// Tries to parse a string into a value. /// The string to parse. /// An object that provides culture-specific formatting information about . /// On return, contains the result of successfully parsing or an undefined value on failure. diff --git a/src/libraries/System.Private.CoreLib/src/System/ISpanParsable.cs b/src/libraries/System.Private.CoreLib/src/System/ISpanParsable.cs index 2e24d5173e2fbd..bdc00e5331312d 100644 --- a/src/libraries/System.Private.CoreLib/src/System/ISpanParsable.cs +++ b/src/libraries/System.Private.CoreLib/src/System/ISpanParsable.cs @@ -18,7 +18,7 @@ public interface ISpanParsable : IParsable /// is not representable by . static abstract TSelf Parse(ReadOnlySpan s, IFormatProvider? provider); - /// Tries to parses a span of characters into a value. + /// Tries to parse a span of characters into a value. /// The span of characters to parse. /// An object that provides culture-specific formatting information about . /// On return, contains the result of successfully parsing or an undefined value on failure. diff --git a/src/libraries/System.Private.CoreLib/src/System/IntPtr.cs b/src/libraries/System.Private.CoreLib/src/System/IntPtr.cs index bf57124154482d..27f1289a3a9025 100644 --- a/src/libraries/System.Private.CoreLib/src/System/IntPtr.cs +++ b/src/libraries/System.Private.CoreLib/src/System/IntPtr.cs @@ -242,6 +242,11 @@ public static bool TryParse(ReadOnlySpan s, out nint result) return nint_t.TryParse(s, out Unsafe.As(ref result)); } + /// Tries to parse a string into a value. + /// A read-only span of characters containing a number to convert. + /// An object that provides culture-specific formatting information about . + /// When this method returns, contains the result of successfully parsing or an undefined value on failure. + /// if was converted successfully; otherwise, . public static bool TryParse(ReadOnlySpan s, IFormatProvider? provider, out nint result) { Unsafe.SkipInit(out result); diff --git a/src/libraries/System.Private.CoreLib/src/System/Numerics/INumberBase.cs b/src/libraries/System.Private.CoreLib/src/System/Numerics/INumberBase.cs index 7bc025bf806ce0..a994dda9c2888a 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Numerics/INumberBase.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Numerics/INumberBase.cs @@ -330,7 +330,7 @@ protected static abstract bool TryConvertToTruncating(TSelf value, [Mayb where TOther : INumberBase; #nullable restore - /// Tries to parses a string into a value. + /// Tries to parse a string into a value. /// The string to parse. /// A bitwise combination of number styles that can be present in . /// An object that provides culture-specific formatting information about . @@ -339,7 +339,7 @@ protected static abstract bool TryConvertToTruncating(TSelf value, [Mayb /// is not a supported value. static abstract bool TryParse([NotNullWhen(true)] string? s, NumberStyles style, IFormatProvider? provider, out TSelf result); - /// Tries to parses a span of characters into a value. + /// Tries to parse a span of characters into a value. /// The span of characters to parse. /// A bitwise combination of number styles that can be present in . /// An object that provides culture-specific formatting information about . diff --git a/src/libraries/System.Private.CoreLib/src/System/Numerics/Matrix3x2.cs b/src/libraries/System.Private.CoreLib/src/System/Numerics/Matrix3x2.cs index e56e41c47984b9..f939ec9abded3a 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Numerics/Matrix3x2.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Numerics/Matrix3x2.cs @@ -68,6 +68,15 @@ public static Matrix3x2 Identity get => _identity; } + /// Gets or sets the element at the specified indices. + /// The index of the row containing the element to get or set. + /// The index of the column containing the element to get or set. + /// The element at [][]. + /// + /// was less than zero or greater than the number of rows. + /// -or- + /// was less than zero or greater than the number of columns. + /// public unsafe float this[int row, int column] { get diff --git a/src/libraries/System.Private.CoreLib/src/System/Numerics/Matrix4x4.cs b/src/libraries/System.Private.CoreLib/src/System/Numerics/Matrix4x4.cs index fa0aea888652d0..d0738641a3e2ec 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Numerics/Matrix4x4.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Numerics/Matrix4x4.cs @@ -152,6 +152,15 @@ public static Matrix4x4 Identity get => _identity; } + /// Gets or sets the element at the specified indices. + /// The index of the row containing the element to get or set. + /// The index of the column containing the element to get or set. + /// The element at [][]. + /// + /// was less than zero or greater than the number of rows. + /// -or- + /// was less than zero or greater than the number of columns. + /// public unsafe float this[int row, int column] { get diff --git a/src/libraries/System.Private.CoreLib/src/System/Numerics/Quaternion.cs b/src/libraries/System.Private.CoreLib/src/System/Numerics/Quaternion.cs index c1f21dc7b32fd0..154615379e2ac1 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Numerics/Quaternion.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Numerics/Quaternion.cs @@ -68,6 +68,10 @@ public static Quaternion Identity get => new Quaternion(0, 0, 0, 1); } + /// Gets or sets the element at the specified index. + /// The index of the element to get or set. + /// The element at . + /// was less than zero or greater than the number of elements. public float this[int index] { get => GetElement(this, index); @@ -98,7 +102,7 @@ private static float GetElementUnsafe(ref Quaternion quaternion, int index) } /// Sets the element at the specified index. - /// The vector of the element to get. + /// The vector of the element to set. /// The index of the element to set. /// The value of the element to set. /// was less than zero or greater than the number of elements. diff --git a/src/libraries/System.Private.CoreLib/src/System/Numerics/Vector2.cs b/src/libraries/System.Private.CoreLib/src/System/Numerics/Vector2.cs index 8556952f32b357..90e2aa683ca7bb 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Numerics/Vector2.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Numerics/Vector2.cs @@ -86,6 +86,10 @@ public static Vector2 UnitY get => new Vector2(0.0f, 1.0f); } + /// Gets or sets the element at the specified index. + /// The index of the element to get or set. + /// The the element at . + /// was less than zero or greater than the number of elements. public float this[int index] { get => GetElement(this, index); diff --git a/src/libraries/System.Private.CoreLib/src/System/Numerics/Vector3.cs b/src/libraries/System.Private.CoreLib/src/System/Numerics/Vector3.cs index c04228da9a76fb..e800227711f594 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Numerics/Vector3.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Numerics/Vector3.cs @@ -106,6 +106,10 @@ public static Vector3 UnitZ get => new Vector3(0.0f, 0.0f, 1.0f); } + /// Gets or sets the element at the specified index. + /// The index of the element to get or set. + /// The the element at . + /// was less than zero or greater than the number of elements. public float this[int index] { get => GetElement(this, index); diff --git a/src/libraries/System.Private.CoreLib/src/System/Numerics/Vector4.cs b/src/libraries/System.Private.CoreLib/src/System/Numerics/Vector4.cs index c0c709f1d27101..bb12c1d1cab52d 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Numerics/Vector4.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Numerics/Vector4.cs @@ -128,6 +128,10 @@ public static Vector4 UnitW get => new Vector4(0.0f, 0.0f, 0.0f, 1.0f); } + /// Gets or sets the element at the specified index. + /// The index of the element to get or set. + /// The the element at . + /// was less than zero or greater than the number of elements. public float this[int index] { get => GetElement(this, index); diff --git a/src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/NFloat.cs b/src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/NFloat.cs index 9aeef16dadb4dd..981044c6d3c5e1 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/NFloat.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/NFloat.cs @@ -1763,6 +1763,7 @@ private static bool TryConvertTo(NFloat value, [MaybeNullWhen(false)] ou // IParsable // + /// public static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out NFloat result) => TryParse(s, NumberStyles.Float | NumberStyles.AllowThousands, 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 b0458bf60ac528..9cce3df8fa560d 100644 --- a/src/libraries/System.Private.CoreLib/src/System/UIntPtr.cs +++ b/src/libraries/System.Private.CoreLib/src/System/UIntPtr.cs @@ -219,7 +219,11 @@ public static bool TryParse([NotNullWhen(true)] string? s, out nuint result) return nuint_t.TryParse(s, out Unsafe.As(ref result)); } - /// + /// Tries to parse a string into a value. + /// A read-only span of characters containing a number to convert. + /// An object that provides culture-specific formatting information about . + /// When this method returns, contains the result of successfully parsing or an undefined value on failure. + /// if was converted successfully; otherwise, . public static bool TryParse(ReadOnlySpan s, IFormatProvider? provider, out nuint result) { Unsafe.SkipInit(out result); @@ -238,6 +242,7 @@ public static bool TryParse(ReadOnlySpan s, out nuint result) return nuint_t.TryParse(s, out Unsafe.As(ref result)); } + /// public static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out nuint result) { Unsafe.SkipInit(out result); diff --git a/src/libraries/System.Runtime.Numerics/src/System/Numerics/BigInteger.cs b/src/libraries/System.Runtime.Numerics/src/System/Numerics/BigInteger.cs index 1175591a97e005..532f12588976db 100644 --- a/src/libraries/System.Runtime.Numerics/src/System/Numerics/BigInteger.cs +++ b/src/libraries/System.Runtime.Numerics/src/System/Numerics/BigInteger.cs @@ -5199,6 +5199,7 @@ static bool INumberBase.TryConvertToTruncating(BigInteger va // IParsable // + /// public static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out BigInteger result) => TryParse(s, NumberStyles.Integer, provider, out result); //