Skip to content

Commit e929de2

Browse files
Merge pull request #11044 from dotnet/main
Merge main into live
2 parents 22607c2 + f9285cf commit e929de2

File tree

10 files changed

+67
-56
lines changed

10 files changed

+67
-56
lines changed

snippets/csharp/System.Numerics/BigInteger/.ctor/Example1.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System;
22
using System.Numerics;
33

4-
public class Example
4+
public class Example1
55
{
66
public static void Main()
77
{

snippets/csharp/System.Numerics/BigInteger/.ctor/Example2.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System;
22
using System.Numerics;
33

4-
public class Example
4+
public class Example2
55
{
66
public static void Main()
77
{
@@ -98,13 +98,13 @@ private static void LongConstructor()
9898
constructed.Equals(assigned));
9999
}
100100
// The example displays the following output:
101-
// -2147483648 = -2147483648: True
101+
// -9223372036854775808 = -9223372036854775808: True
102102
// -10534 = -10534: True
103103
// -189 = -189: True
104104
// 0 = 0: True
105105
// 17 = 17: True
106106
// 113439 = 113439: True
107-
// 2147483647 = 2147483647: True
107+
// 9223372036854775807 = 9223372036854775807: True
108108
// </Snippet7>
109109
}
110110

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<OutputType>Library</OutputType>
4+
<TargetFramework>net9.0</TargetFramework>
5+
</PropertyGroup>
6+
</Project>

snippets/fsharp/System.Numerics/BigInteger/.ctor/Example2.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,13 @@ let longConstructor () =
6363
let assigned = number
6464
printfn $"{constructed} = {assigned}: {constructed.Equals assigned}"
6565
// The example displays the following output:
66-
// -2147483648 = -2147483648: True
66+
// -9223372036854775808 = -9223372036854775808: True
6767
// -10534 = -10534: True
6868
// -189 = -189: True
6969
// 0 = 0: True
7070
// 17 = 17: True
7171
// 113439 = 113439: True
72-
// 2147483647 = 2147483647: True
72+
// 9223372036854775807 = 9223372036854775807: True
7373
// </Snippet7>
7474

7575
let singleConstructor () =

snippets/visualbasic/VS_Snippets_CLR_System/system.Numerics.BigInteger.ctors/vb/Example1.vb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Option Strict On
33

44
Imports System.Numerics
55

6-
Module Example
6+
Module Example1
77
Public Sub Main()
88
Console.WindowWidth = 90
99
CreateSimpleArray()

snippets/visualbasic/VS_Snippets_CLR_System/system.Numerics.BigInteger.ctors/vb/Example2.vb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Option Strict On
33

44
Imports System.Numerics
55

6-
Module Example
6+
Module Example2
77
Public Sub Main()
88
DecimalConstructor()
99
Console.WriteLine("-----")
@@ -92,13 +92,13 @@ Module Example
9292
constructed.Equals(assigned))
9393
Next
9494
' The example displays the following output:
95-
' -2147483648 = -2147483648: True
95+
' -9223372036854775808 = -9223372036854775808: True
9696
' -10534 = -10534: True
9797
' -189 = -189: True
9898
' 0 = 0: True
9999
' 17 = 17: True
100100
' 113439 = 113439: True
101-
' 2147483647 = 2147483647: True
101+
' 9223372036854775807 = 9223372036854775807: True
102102
' </Snippet7>
103103
End Sub
104104

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<OutputType>Library</OutputType>
4+
<TargetFramework>net9.0</TargetFramework>
5+
6+
</PropertyGroup>
7+
</Project>

xml/System.Runtime.Intrinsics/Vector512.xml

Lines changed: 42 additions & 42 deletions
Large diffs are not rendered by default.

xml/System.Security.Cryptography.X509Certificates/X509Chain.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
>
7979
> For apps that target the .NET Framework 4.5.2 and earlier versions, the <xref:System.Security.Cryptography.X509Certificates.X509Chain> class does not implement the <xref:System.IDisposable> interface and therefore does not have a `Dispose` method.
8080
81-
81+
When disposing <xref:System.Security.Cryptography.X509Certificates.X509Chain>, the certificates in <xref:System.Security.Cryptography.X509Certificates.X509Chain.ChainElements> are not disposed. You should dispose of the certificates in this collection when the certificate instances are no longer needed.
8282
8383
## Examples
8484
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.

xml/System/AppDomain.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@
9494
Application domains, which are represented by <xref:System.AppDomain> objects, help provide isolation, unloading, and security boundaries for executing managed code.
9595

9696
- Use application domains to isolate tasks that might bring down a process. If the state of the <xref:System.AppDomain> that's executing a task becomes unstable, the <xref:System.AppDomain> 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.
97-
9897
- 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.
9998

10099
> [!NOTE]
@@ -5886,9 +5885,8 @@ This method overload uses the <xref:System.AppDomainSetup> information from the
58865885
<format type="text/markdown"><![CDATA[
58875886

58885887
## Remarks
5889-
The friendly name of the default application domain is the file name of the process executable. For example, if the executable used to start the process is `"c:\MyAppDirectory\MyAssembly.exe"`, the friendly name of the default application domain is `"MyAssembly.exe"`.
5890-
58915888

5889+
The friendly name of the default application domain is the file name of the process executable. For example, if the executable used to start the process is `"c:\MyAppDirectory\MyAssembly.exe"`, the friendly name of the default application domain is `"MyAssembly.exe"`. (In .NET Core and .NET 5+, the friendly name doesn't include the file extension.)
58925890

58935891
## Examples
58945892
The following code example uses the <xref:System.AppDomain.FriendlyName%2A> 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.

0 commit comments

Comments
 (0)