From df2856975efe92a61309558a8369a66ca939e2ec Mon Sep 17 00:00:00 2001 From: PantaKoda <147987379+PantaKoda@users.noreply.github.com> Date: Mon, 27 Oct 2025 16:06:42 +0100 Subject: [PATCH 1/3] Update DNS resolution method in SocketAddress example (#11970) 'Resolve has been deprecated. Use GetHostEntry instead.' --- snippets/csharp/System.Net/SocketAddress/Overview/source.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/csharp/System.Net/SocketAddress/Overview/source.cs b/snippets/csharp/System.Net/SocketAddress/Overview/source.cs index 1a1dc7536d3..c2ca6437df9 100644 --- a/snippets/csharp/System.Net/SocketAddress/Overview/source.cs +++ b/snippets/csharp/System.Net/SocketAddress/Overview/source.cs @@ -10,7 +10,7 @@ public static void MySerializeIPEndPointClassMethod(){ // //Creates an IpEndPoint. -IPAddress ipAddress = Dns.Resolve("www.contoso.com").AddressList[0]; +IPAddress ipAddress = Dns.GetHostEntry("www.contoso.com").AddressList[0]; IPEndPoint ipLocalEndPoint = new IPEndPoint(ipAddress, 11000); //Serializes the IPEndPoint. From cfb2474d9d2341ebcea7f18129f6ee8bd8e08012 Mon Sep 17 00:00:00 2001 From: Maksym Konotop <43847461+kanilsz@users.noreply.github.com> Date: Mon, 27 Oct 2025 22:30:24 +0200 Subject: [PATCH 2/3] MathF.SinCos remarks uses Math.PI instead of MathF.PI (#11824) (#11941) --- xml/System/MathF.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xml/System/MathF.xml b/xml/System/MathF.xml index 3127716319e..3b3ecae1a29 100644 --- a/xml/System/MathF.xml +++ b/xml/System/MathF.xml @@ -2405,7 +2405,7 @@ If the value of the `x` argument is /180 to convert degrees to radians. + The angle, `x`, must be in radians. Multiply by /180 to convert degrees to radians. This method calls into the underlying C runtime, and the exact result or valid input range may differ between different operating systems or architectures. From f0f6ff075afdd7b34011570c0a5f761aa3b29200 Mon Sep 17 00:00:00 2001 From: Maksym Konotop <43847461+kanilsz@users.noreply.github.com> Date: Mon, 27 Oct 2025 22:32:56 +0200 Subject: [PATCH 3/3] Incorrect statement in BigInteger.Pow(BigInteger, Int32) remarks (#11815) (#11942) --- xml/System.Numerics/BigInteger.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xml/System.Numerics/BigInteger.xml b/xml/System.Numerics/BigInteger.xml index f58f23c1766..244ac9afef8 100644 --- a/xml/System.Numerics/BigInteger.xml +++ b/xml/System.Numerics/BigInteger.xml @@ -9342,7 +9342,7 @@ If `provider` is `null`, the object method returns 1 if the value of the exponent parameter is 0, or if the values of both the `value` and `exponent` parameters are 0. If `exponent` is 1, the method returns `value`. If `value` is negative, the method returns a negative result. + The method returns 1 if the value of the exponent parameter is 0, or if the values of both the `value` and `exponent` parameters are 0. If `exponent` is 1, the method returns `value`. If `value` is negative and exponent is odd, the method returns a negative result. This method corresponds to the method for primitive numeric types.