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