Skip to content

Commit 5a8f9d4

Browse files
authored
add_try_dotnet (dotnet#6737)
1 parent ee15d0d commit 5a8f9d4

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

xml/System.Numerics/BigInteger.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2886,7 +2886,7 @@ value Mod 2 = 0
28862886
## Examples
28872887
The following example creates an array of <xref:System.Numerics.BigInteger> values. It then uses each element as the quotient in a division operation that uses the <xref:System.Numerics.BigInteger.Divide%2A> method, the division operator (/), and the <xref:System.Numerics.BigInteger.DivRem%2A> method.
28882888

2889-
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.Numerics.BigInteger.Divide/cs/Divide1.cs" id="Snippet1":::
2889+
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.Numerics.BigInteger.Divide/cs/Divide1.cs" interactive="try-dotnet" id="Snippet1":::
28902890
:::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Numerics.BigInteger.Divide/vb/Divide1.vb" id="Snippet1":::
28912891

28922892
]]></format>
@@ -6453,7 +6453,7 @@ value Mod 2 = 0
64536453
## Remarks
64546454
The <xref:System.Numerics.BigInteger.op_OnesComplement%2A> method defines the operation of the bitwise one's complement operator for <xref:System.Numerics.BigInteger> values. The bitwise one's complement operator reverses each bit in a numeric value. That is, bits in `value` that are 0 are set to 1 in the result, and bits that are 1 are set to 0 in the result. The <xref:System.Numerics.BigInteger.op_OnesComplement%2A> method enables code such as the following:
64556455

6456-
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.Numerics.BigInteger.OnesComplement/cs/OnesComplement1.cs" id="Snippet1":::
6456+
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.Numerics.BigInteger.OnesComplement/cs/OnesComplement1.cs" interactive="try-dotnet" id="Snippet1":::
64576457
:::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Numerics.BigInteger.OnesComplement/vb/OnesComplement1.vb" id="Snippet1":::
64586458

64596459
Languages that do not support custom operators may be able to call the <xref:System.Numerics.BigInteger.op_OnesComplement%2A> method directly to perform a bitwise one's complement operation. For example:
@@ -7373,7 +7373,7 @@ If `provider` is `null`, the <xref:System.Globalization.NumberFormatInfo> object
73737373
## Examples
73747374
The following example compares the remainder from the <xref:System.Numerics.BigInteger.DivRem%2A> method with the remainder returned by the <xref:System.Numerics.BigInteger.Remainder%2A> method to establish that the two methods calculate identical remainders.
73757375

7376-
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.Numerics.BigInteger.Remainder/cs/Remainder1.cs" id="Snippet1":::
7376+
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.Numerics.BigInteger.Remainder/cs/Remainder1.cs" interactive="try-dotnet" id="Snippet1":::
73777377
:::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Numerics.BigInteger.Remainder/vb/Remainder1.vb" id="Snippet1":::
73787378

73797379
]]></format>

xml/System.Numerics/Complex.xml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ The addition of a complex number (a + bi) and a real number (which can be regard
676676
## Examples
677677
The following example displays the conjugate of two complex numbers.
678678
679-
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.numerics.complex.conjugate/cs/conjugate1.cs" id="Snippet1":::
679+
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.numerics.complex.conjugate/cs/conjugate1.cs" interactive="try-dotnet" id="Snippet1":::
680680
:::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.numerics.complex.conjugate/vb/conjugate1.vb" id="Snippet1":::
681681
682682
]]></format>
@@ -814,7 +814,7 @@ The addition of a complex number (a + bi) and a real number (which can be regard
814814
## Examples
815815
The following example divides a complex number by each element in an array of complex numbers.
816816
817-
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.numerics.complex.divide/cs/divide1.cs" id="Snippet1":::
817+
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.numerics.complex.divide/cs/divide1.cs" interactive="try-dotnet" id="Snippet1":::
818818
:::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.numerics.complex.divide/vb/divide1.vb" id="Snippet1":::
819819
820820
]]></format>
@@ -1373,7 +1373,7 @@ The addition of a complex number (a + bi) and a real number (which can be regard
13731373
## Examples
13741374
The following example instantiates a <xref:System.Numerics.Complex> value by using the <xref:System.Numerics.Complex.ImaginaryOne> property. It then compares this value to another value that is instantiated by calling the <xref:System.Numerics.Complex> constructor with a real part equal to zero and an imaginary part equal to one. As the output from the example shows, the two values are equal.
13751375
1376-
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.numerics.complex.imaginaryone/cs/imaginaryone1.cs" id="Snippet1":::
1376+
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.numerics.complex.imaginaryone/cs/imaginaryone1.cs" interactive="try-dotnet" id="Snippet1":::
13771377
:::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.numerics.complex.imaginaryone/vb/imaginaryone1.vb" id="Snippet1":::
13781378
13791379
]]></format>
@@ -2079,7 +2079,7 @@ The <xref:System.Numerics.Complex.op_Addition%2A> operators that receive one dou
20792079
20802080
The following example illustrates addition with complex numbers:
20812081
2082-
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.numerics.complex.add/cs/add2.cs" id="Snippet2":::
2082+
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.numerics.complex.add/cs/add2.cs" interactive="try-dotnet" id="Snippet2":::
20832083
:::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.numerics.complex.add/vb/add2.vb" id="Snippet2":::
20842084
20852085
]]></format>
@@ -3849,7 +3849,7 @@ Languages that do not support custom operators can call the <xref:System.Numeric
38493849
## Examples
38503850
The following example instantiates an array of <xref:System.Numerics.Complex> objects and displays the real and imaginary components of each in the form a + bi.
38513851
3852-
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.numerics.complex.real/cs/real1.cs" id="Snippet1":::
3852+
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.numerics.complex.real/cs/real1.cs" interactive="try-dotnet" id="Snippet1":::
38533853
:::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.numerics.complex.real/vb/real1.vb" id="Snippet1":::
38543854
38553855
]]></format>
@@ -4098,7 +4098,7 @@ The <xref:System.Numerics.Complex.Subtract%2A> methods that receive one double a
40984098
40994099
The following example subtracts each complex number in an array from a complex number:
41004100
4101-
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.numerics.complex.subtract/cs/subtract1.cs" id="Snippet1":::
4101+
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.numerics.complex.subtract/cs/subtract1.cs" interactive="try-dotnet" id="Snippet1":::
41024102
:::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.numerics.complex.subtract/vb/subtract1.vb" id="Snippet1":::
41034103
41044104
]]></format>
@@ -4432,7 +4432,7 @@ Languages that support custom operators can use the <xref:System.Numerics.Comple
44324432
## Examples
44334433
The following example displays the string representation of several complex numbers. The output uses the formatting conventions of the English - United States ("en-US") culture, which, in this case, is the current system culture.
44344434
4435-
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.numerics.complex.tostring/cs/tostring1.cs" id="Snippet1":::
4435+
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.numerics.complex.tostring/cs/tostring1.cs" interactive="try-dotnet" id="Snippet1":::
44364436
:::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.numerics.complex.tostring/vb/tostring1.vb" id="Snippet1":::
44374437
44384438
]]></format>
@@ -4498,7 +4498,7 @@ Languages that support custom operators can use the <xref:System.Numerics.Comple
44984498
## Examples
44994499
The following example displays the string representation of several complex numbers. The result uses the formatting conventions of the English - United States ("en-US") and French - France ("fr-FR") cultures.
45004500
4501-
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.numerics.complex.tostring/cs/tostring2.cs" id="Snippet2":::
4501+
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.numerics.complex.tostring/cs/tostring2.cs" interactive="try-dotnet" id="Snippet2":::
45024502
:::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.numerics.complex.tostring/vb/tostring2.vb" id="Snippet2":::
45034503
45044504
]]></format>
@@ -4562,7 +4562,7 @@ Languages that support custom operators can use the <xref:System.Numerics.Comple
45624562
## Examples
45634563
The following example initializes a complex number and displays it using several standard format strings.
45644564
4565-
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.numerics.complex.tostring/cs/tostring3.cs" id="Snippet3":::
4565+
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.numerics.complex.tostring/cs/tostring3.cs" interactive="try-dotnet" id="Snippet3":::
45664566
:::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.numerics.complex.tostring/vb/tostring3.vb" id="Snippet3":::
45674567
45684568
]]></format>
@@ -4643,7 +4643,7 @@ Languages that support custom operators can use the <xref:System.Numerics.Comple
46434643
## Examples
46444644
The following example creates an array of complex numbers, and displays each using several standard format strings as well as <xref:System.Globalization.CultureInfo> objects that represent the English - United States ("en-US") and French - France ("fr-FR") cultures.
46454645
4646-
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.numerics.complex.tostring/cs/tostring4.cs" id="Snippet4":::
4646+
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.numerics.complex.tostring/cs/tostring4.cs" interactive="try-dotnet" id="Snippet4":::
46474647
:::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.numerics.complex.tostring/vb/tostring4.vb" id="Snippet4":::
46484648
46494649
]]></format>

0 commit comments

Comments
 (0)