From 2d62b560699fcb56bb08c75c21cc225a3b1e5746 Mon Sep 17 00:00:00 2001 From: Rageking8 <106309953+Rageking8@users.noreply.github.com> Date: Tue, 4 Mar 2025 00:09:07 +0800 Subject: [PATCH 1/4] Fix example output of `BigInteger(Int64)` (#11035) * Fix example output of `BigInteger(Int64)` * Add missing project files * Resolve `Example` identifier conflict * Apply suggestions from code review --------- Co-authored-by: Bill Wagner --- .../csharp/System.Numerics/BigInteger/.ctor/Example1.cs | 2 +- .../csharp/System.Numerics/BigInteger/.ctor/Example2.cs | 6 +++--- .../csharp/System.Numerics/BigInteger/.ctor/Project.csproj | 6 ++++++ .../fsharp/System.Numerics/BigInteger/.ctor/Example2.fs | 4 ++-- .../system.Numerics.BigInteger.ctors/vb/Example1.vb | 2 +- .../system.Numerics.BigInteger.ctors/vb/Example2.vb | 6 +++--- .../system.Numerics.BigInteger.ctors/vb/Project.vbproj | 7 +++++++ 7 files changed, 23 insertions(+), 10 deletions(-) create mode 100644 snippets/csharp/System.Numerics/BigInteger/.ctor/Project.csproj create mode 100644 snippets/visualbasic/VS_Snippets_CLR_System/system.Numerics.BigInteger.ctors/vb/Project.vbproj diff --git a/snippets/csharp/System.Numerics/BigInteger/.ctor/Example1.cs b/snippets/csharp/System.Numerics/BigInteger/.ctor/Example1.cs index abe5043c114..3ca8a377178 100644 --- a/snippets/csharp/System.Numerics/BigInteger/.ctor/Example1.cs +++ b/snippets/csharp/System.Numerics/BigInteger/.ctor/Example1.cs @@ -1,7 +1,7 @@ using System; using System.Numerics; -public class Example +public class Example1 { public static void Main() { diff --git a/snippets/csharp/System.Numerics/BigInteger/.ctor/Example2.cs b/snippets/csharp/System.Numerics/BigInteger/.ctor/Example2.cs index c9f66fd5150..bc797c9045a 100644 --- a/snippets/csharp/System.Numerics/BigInteger/.ctor/Example2.cs +++ b/snippets/csharp/System.Numerics/BigInteger/.ctor/Example2.cs @@ -1,7 +1,7 @@ using System; using System.Numerics; -public class Example +public class Example2 { public static void Main() { @@ -98,13 +98,13 @@ private static void LongConstructor() constructed.Equals(assigned)); } // The example displays the following output: - // -2147483648 = -2147483648: True + // -9223372036854775808 = -9223372036854775808: True // -10534 = -10534: True // -189 = -189: True // 0 = 0: True // 17 = 17: True // 113439 = 113439: True - // 2147483647 = 2147483647: True + // 9223372036854775807 = 9223372036854775807: True // } diff --git a/snippets/csharp/System.Numerics/BigInteger/.ctor/Project.csproj b/snippets/csharp/System.Numerics/BigInteger/.ctor/Project.csproj new file mode 100644 index 00000000000..9bb79615f63 --- /dev/null +++ b/snippets/csharp/System.Numerics/BigInteger/.ctor/Project.csproj @@ -0,0 +1,6 @@ + + + Library + net9.0 + + \ No newline at end of file diff --git a/snippets/fsharp/System.Numerics/BigInteger/.ctor/Example2.fs b/snippets/fsharp/System.Numerics/BigInteger/.ctor/Example2.fs index b1b1795d0ba..dc29be16b7d 100644 --- a/snippets/fsharp/System.Numerics/BigInteger/.ctor/Example2.fs +++ b/snippets/fsharp/System.Numerics/BigInteger/.ctor/Example2.fs @@ -63,13 +63,13 @@ let longConstructor () = let assigned = number printfn $"{constructed} = {assigned}: {constructed.Equals assigned}" // The example displays the following output: - // -2147483648 = -2147483648: True + // -9223372036854775808 = -9223372036854775808: True // -10534 = -10534: True // -189 = -189: True // 0 = 0: True // 17 = 17: True // 113439 = 113439: True - // 2147483647 = 2147483647: True + // 9223372036854775807 = 9223372036854775807: True // let singleConstructor () = diff --git a/snippets/visualbasic/VS_Snippets_CLR_System/system.Numerics.BigInteger.ctors/vb/Example1.vb b/snippets/visualbasic/VS_Snippets_CLR_System/system.Numerics.BigInteger.ctors/vb/Example1.vb index a2795960b0d..6b5a2951d09 100644 --- a/snippets/visualbasic/VS_Snippets_CLR_System/system.Numerics.BigInteger.ctors/vb/Example1.vb +++ b/snippets/visualbasic/VS_Snippets_CLR_System/system.Numerics.BigInteger.ctors/vb/Example1.vb @@ -3,7 +3,7 @@ Option Strict On Imports System.Numerics -Module Example +Module Example1 Public Sub Main() Console.WindowWidth = 90 CreateSimpleArray() diff --git a/snippets/visualbasic/VS_Snippets_CLR_System/system.Numerics.BigInteger.ctors/vb/Example2.vb b/snippets/visualbasic/VS_Snippets_CLR_System/system.Numerics.BigInteger.ctors/vb/Example2.vb index 105da819fa0..3c25a3eb326 100644 --- a/snippets/visualbasic/VS_Snippets_CLR_System/system.Numerics.BigInteger.ctors/vb/Example2.vb +++ b/snippets/visualbasic/VS_Snippets_CLR_System/system.Numerics.BigInteger.ctors/vb/Example2.vb @@ -3,7 +3,7 @@ Option Strict On Imports System.Numerics -Module Example +Module Example2 Public Sub Main() DecimalConstructor() Console.WriteLine("-----") @@ -92,13 +92,13 @@ Module Example constructed.Equals(assigned)) Next ' The example displays the following output: - ' -2147483648 = -2147483648: True + ' -9223372036854775808 = -9223372036854775808: True ' -10534 = -10534: True ' -189 = -189: True ' 0 = 0: True ' 17 = 17: True ' 113439 = 113439: True - ' 2147483647 = 2147483647: True + ' 9223372036854775807 = 9223372036854775807: True ' End Sub diff --git a/snippets/visualbasic/VS_Snippets_CLR_System/system.Numerics.BigInteger.ctors/vb/Project.vbproj b/snippets/visualbasic/VS_Snippets_CLR_System/system.Numerics.BigInteger.ctors/vb/Project.vbproj new file mode 100644 index 00000000000..9a84e38014e --- /dev/null +++ b/snippets/visualbasic/VS_Snippets_CLR_System/system.Numerics.BigInteger.ctors/vb/Project.vbproj @@ -0,0 +1,7 @@ + + + Library + net9.0 + + + \ No newline at end of file From b3fa31e5871b42538d92e011d8a9c6008c6a896d Mon Sep 17 00:00:00 2001 From: Kevin Jones Date: Mon, 3 Mar 2025 13:57:45 -0500 Subject: [PATCH 2/4] Add note about disposing certificates in chain elements to X509Chain (#11042) --- xml/System.Security.Cryptography.X509Certificates/X509Chain.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xml/System.Security.Cryptography.X509Certificates/X509Chain.xml b/xml/System.Security.Cryptography.X509Certificates/X509Chain.xml index 86935563554..157cc396c66 100644 --- a/xml/System.Security.Cryptography.X509Certificates/X509Chain.xml +++ b/xml/System.Security.Cryptography.X509Certificates/X509Chain.xml @@ -78,7 +78,7 @@ > > For apps that target the .NET Framework 4.5.2 and earlier versions, the class does not implement the interface and therefore does not have a `Dispose` method. - + When disposing , the certificates in are not disposed. You should dispose of the certificates in this collection when the certificate instances are no longer needed. ## Examples The following code example opens the current user's personal certificate store, allows you to select a certificate, then writes certificate and certificate chain information to the console. The output depends on the certificate you select. From 0a42a00caad93670743f46b8658809e928ce7758 Mon Sep 17 00:00:00 2001 From: Rageking8 <106309953+Rageking8@users.noreply.github.com> Date: Tue, 4 Mar 2025 06:06:12 +0800 Subject: [PATCH 3/4] Elide vector link in returns description for `Vector512.Create` (#11033) --- xml/System.Runtime.Intrinsics/Vector512.xml | 84 ++++++++++----------- 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/xml/System.Runtime.Intrinsics/Vector512.xml b/xml/System.Runtime.Intrinsics/Vector512.xml index 5194ff9494e..723ad31d581 100644 --- a/xml/System.Runtime.Intrinsics/Vector512.xml +++ b/xml/System.Runtime.Intrinsics/Vector512.xml @@ -2139,7 +2139,7 @@ The value that all elements will be initialized to. Creates a new instance with all elements initialized to the specified value. - A new with all elements initialized to . + A new vector with all elements initialized to . On x86, this method corresponds to __m512i _mm512_set1_epi8 @@ -2166,7 +2166,7 @@ The value that all elements will be initialized to. Creates a new instance with all elements initialized to the specified value. - A new with all elements initialized to . + A new vector with all elements initialized to . On x86, this method corresponds to __m512d _mm512_set1_pd @@ -2193,7 +2193,7 @@ The value that all elements will be initialized to. Creates a new instance with all elements initialized to the specified value. - A new with all elements initialized to . + A new vector with all elements initialized to . On x86, this method corresponds to __m512i _mm512_set1_epi16 @@ -2220,7 +2220,7 @@ The value that all elements will be initialized to. Creates a new instance with all elements initialized to the specified value. - A new with all elements initialized to . + A new vector with all elements initialized to . On x86, this method corresponds to __m512i _mm512_set1_epi32 @@ -2247,7 +2247,7 @@ The value that all elements will be initialized to. Creates a new instance with all elements initialized to the specified value. - A new with all elements initialized to . + A new vector with all elements initialized to . On x86, this method corresponds to __m512i _mm512_set1_epi64x @@ -2274,7 +2274,7 @@ The value that all elements will be initialized to. Creates a new instance with all elements initialized to the specified value. - A new with all elements initialized to . + A new vector with all elements initialized to . To be added. @@ -2307,7 +2307,7 @@ The value that all elements will be initialized to. Creates a new instance with all elements initialized to the specified value. - A new with all elements initialized to . + A new vector with all elements initialized to . On x86, this method corresponds to __m512i _mm512_set1_epi8 @@ -2334,7 +2334,7 @@ The value that all elements will be initialized to. Creates a new instance with all elements initialized to the specified value. - A new with all elements initialized to . + A new vector with all elements initialized to . On x86, this method corresponds to __m512 _mm512_set1_ps @@ -2367,7 +2367,7 @@ The value that all elements will be initialized to. Creates a new instance with all elements initialized to the specified value. - A new with all elements initialized to . + A new vector with all elements initialized to . On x86, this method corresponds to __m512i _mm512_set1_epi16 @@ -2400,7 +2400,7 @@ The value that all elements will be initialized to. Creates a new instance with all elements initialized to the specified value. - A new with all elements initialized to . + A new vector with all elements initialized to . On x86, this method corresponds to __m512i _mm512_set1_epi32 @@ -2433,7 +2433,7 @@ The value that all elements will be initialized to. Creates a new instance with all elements initialized to the specified value. - A new with all elements initialized to . + A new vector with all elements initialized to . On x86, this method corresponds to __m512i _mm512_set1_epi64x @@ -2466,7 +2466,7 @@ The value that all elements will be initialized to. Creates a new instance with all elements initialized to the specified value. - A new with all elements initialized to . + A new vector with all elements initialized to . To be added. @@ -2495,7 +2495,7 @@ The value that the lower 256-bits will be initialized to. The value that the upper 256-bits will be initialized to. Creates a new instance from two instances. - A new initialized from and . + A new vector initialized from and . To be added. @@ -2524,7 +2524,7 @@ The value that the lower 256-bits will be initialized to. The value that the upper 256-bits will be initialized to. Creates a new instance from two instances. - A new initialized from and . + A new vector initialized from and . On x86, this method corresponds to __m512d _mm512_setr_m256d (__m256d lo, __m256d hi) @@ -2553,7 +2553,7 @@ The value that the lower 256-bits will be initialized to. The value that the upper 256-bits will be initialized to. Creates a new instance from two instances. - A new initialized from and . + A new vector initialized from and . To be added. @@ -2582,7 +2582,7 @@ The value that the lower 256-bits will be initialized to. The value that the upper 256-bits will be initialized to. Creates a new instance from two instances. - A new initialized from and . + A new vector initialized from and . On x86, this method corresponds to __m512i _mm512_setr_m256i (__m256i lo, __m256i hi) @@ -2611,7 +2611,7 @@ The value that the lower 256-bits will be initialized to. The value that the upper 256-bits will be initialized to. Creates a new instance from two instances. - A new initialized from and . + A new vector initialized from and . To be added. @@ -2640,7 +2640,7 @@ The value that the lower 256-bits will be initialized to. The value that the upper 256-bits will be initialized to. Creates a new instance from two instances. - A new initialized from and . + A new vector initialized from and . To be added. @@ -2675,7 +2675,7 @@ The value that the lower 256-bits will be initialized to. The value that the upper 256-bits will be initialized to. Creates a new instance from two instances. - A new initialized from and . + A new vector initialized from and . To be added. @@ -2704,7 +2704,7 @@ The value that the lower 256-bits will be initialized to. The value that the upper 256-bits will be initialized to. Creates a new instance from two instances. - A new initialized from and . + A new vector initialized from and . On x86, this method corresponds to __m512 _mm512_setr_m256 (__m256 lo, __m256 hi) @@ -2739,7 +2739,7 @@ The value that the lower 256-bits will be initialized to. The value that the upper 256-bits will be initialized to. Creates a new instance from two instances. - A new initialized from and . + A new vector initialized from and . To be added. @@ -2774,7 +2774,7 @@ The value that the lower 256-bits will be initialized to. The value that the upper 256-bits will be initialized to. Creates a new instance from two instances. - A new initialized from and . + A new vector initialized from and . On x86, this method corresponds to __m512i _mm512_setr_m256i (__m256i lo, __m256i hi) @@ -2809,7 +2809,7 @@ The value that the lower 256-bits will be initialized to. The value that the upper 256-bits will be initialized to. Creates a new instance from two instances. - A new initialized from and . + A new vector initialized from and . To be added. @@ -2844,7 +2844,7 @@ The value that the lower 256-bits will be initialized to. The value that the upper 256-bits will be initialized to. Creates a new instance from two instances. - A new initialized from and . + A new vector initialized from and . To be added. @@ -2885,7 +2885,7 @@ The value that element 6 will be initialized to. The value that element 7 will be initialized to. Creates a new instance with each element initialized to the corresponding specified value. - A new with each element initialized to corresponding specified value. + A new vector with each element initialized to corresponding specified value. On x86, this method corresponds to __m512d _mm512_setr_pd @@ -2926,7 +2926,7 @@ The value that element 6 will be initialized to. The value that element 7 will be initialized to. Creates a new instance with each element initialized to the corresponding specified value. - A new with each element initialized to corresponding specified value. + A new vector with each element initialized to corresponding specified value. On x86, this method corresponds to __m512i _mm512_setr_epi64x @@ -2973,7 +2973,7 @@ The value that element 6 will be initialized to. The value that element 7 will be initialized to. Creates a new instance with each element initialized to the corresponding specified value. - A new with each element initialized to corresponding specified value. + A new vector with each element initialized to corresponding specified value. On x86, this method corresponds to __m512i _mm512_setr_epi64x @@ -3030,7 +3030,7 @@ The value that element 14 will be initialized to. The value that element 15 will be initialized to. Creates a new instance with each element initialized to the corresponding specified value. - A new with each element initialized to corresponding specified value. + A new vector with each element initialized to corresponding specified value. On x86, this method corresponds to __m512i _mm512_setr_epi32 @@ -3087,7 +3087,7 @@ The value that element 14 will be initialized to. The value that element 15 will be initialized to. Creates a new instance with each element initialized to the corresponding specified value. - A new with each element initialized to corresponding specified value. + A new vector with each element initialized to corresponding specified value. On x86, this method corresponds to __m512 _mm512_setr_ps @@ -3150,7 +3150,7 @@ The value that element 14 will be initialized to. The value that element 15 will be initialized to. Creates a new instance with each element initialized to the corresponding specified value. - A new with each element initialized to corresponding specified value. + A new vector with each element initialized to corresponding specified value. On x86, this method corresponds to __m512i _mm512_setr_epi32 @@ -3239,7 +3239,7 @@ The value that element 30 will be initialized to. The value that element 31 will be initialized to. Creates a new instance with each element initialized to the corresponding specified value. - A new with each element initialized to corresponding specified value. + A new vector with each element initialized to corresponding specified value. On x86, this method corresponds to __m512i _mm512_setr_epi16 @@ -3334,7 +3334,7 @@ The value that element 30 will be initialized to. The value that element 31 will be initialized to. Creates a new instance with each element initialized to the corresponding specified value. - A new with each element initialized to corresponding specified value. + A new vector with each element initialized to corresponding specified value. On x86, this method corresponds to __m512i _mm512_setr_epi16 @@ -3487,7 +3487,7 @@ The value that element 62 will be initialized to. The value that element 63 will be initialized to. Creates a new instance with each element initialized to the corresponding specified value. - A new with each element initialized to corresponding specified value. + A new vector with each element initialized to corresponding specified value. On x86, this method corresponds to __m512i _mm512_setr_epi8 @@ -3646,7 +3646,7 @@ The value that element 62 will be initialized to. The value that element 63 will be initialized to. Creates a new instance with each element initialized to the corresponding specified value. - A new with each element initialized to corresponding specified value. + A new vector with each element initialized to corresponding specified value. On x86, this method corresponds to __m512i _mm512_setr_epi8 @@ -3690,7 +3690,7 @@ The type of the elements in the vector. The readonly span from which the vector is created. Creates a new from a given readonly span. - A new with its elements set to the first elements from . + A new vector with its elements set to the first elements from . To be added. The length of is less than . The type of () is not supported. @@ -3735,7 +3735,7 @@ The type of the elements in the vector. The value that the 128-bit parts will be initialized to. Creates a new instance with all 128-bit parts initialized to a specified value. - A new with the 128-bit parts initialized to . + A new vector with the 128-bit parts initialized to . To be added. The type of () is not supported. @@ -3779,7 +3779,7 @@ The type of the elements in the vector. The value that the lower and upper 256-bits will be initialized to. Creates a new instance with the lower and upper 256-bits initialized to a specified value. - A new with the lower and upper 256-bits initialized to . + A new vector with the lower and upper 256-bits initialized to . To be added. The type of () is not supported. @@ -3823,7 +3823,7 @@ The type of the elements in the vector. The value that the 64-bit parts will be initialized to. Creates a new instance with all 64-bit parts initialized to a specified value. - A new with the 64-bit parts initialized to . + A new vector with the 64-bit parts initialized to . To be added. The type of () is not supported. @@ -3868,7 +3868,7 @@ The type of the elements in the vector. The value that all elements will be initialized to. Creates a new instance with all elements initialized to the specified value. - A new with all elements initialized to . + A new vector with all elements initialized to . To be added. The type of () is not supported. @@ -3913,7 +3913,7 @@ The type of the elements in the vector. The array from which the vector is created. Creates a new from a given array. - A new with its elements set to the first elements from . + A new vector with its elements set to the first elements from . To be added. The length of is less than . The type of () is not supported. @@ -3970,7 +3970,7 @@ The value that the lower 256-bits will be initialized to. The value that the upper 256-bits will be initialized to. Creates a new instance from two instances. - A new initialized from and . + A new vector initialized from and . To be added. The type of and () is not supported. @@ -4017,7 +4017,7 @@ The array from which the vector is created. The index in at which to being reading elements. Creates a new from a given array. - A new with its elements set to the first elements from . + A new vector with its elements set to the first elements from . To be added. The length of , starting from , is less than . The type of () is not supported. From f9285cf94494298ed3b1924d0920ba1dab541779 Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Mon, 3 Mar 2025 14:52:18 -0800 Subject: [PATCH 4/4] Update AppDomain.xml (#11028) --- xml/System/AppDomain.xml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/xml/System/AppDomain.xml b/xml/System/AppDomain.xml index 8c175403356..52316b288f3 100644 --- a/xml/System/AppDomain.xml +++ b/xml/System/AppDomain.xml @@ -94,7 +94,6 @@ Application domains, which are represented by objects, help provide isolation, unloading, and security boundaries for executing managed code. - Use application domains to isolate tasks that might bring down a process. If the state of the that's executing a task becomes unstable, the can be unloaded without affecting the process. This is important when a process must run for long periods without restarting. You can also use application domains to isolate tasks that should not share data. - - If an assembly is loaded into the default application domain, it cannot be unloaded from memory while the process is running. However, if you open a second application domain to load and execute the assembly, the assembly is unloaded when that application domain is unloaded. Use this technique to minimize the working set of long-running processes that occasionally use large DLLs. > [!NOTE] @@ -5886,9 +5885,8 @@ This method overload uses the information from the property to get the friendly name of the current application domain. For the default application domain, the friendly name is the name of the application's executable file. The code example also displays additional information about the application domain.