Skip to content

Commit 0ee26cf

Browse files
authored
enable_try_dotnet_to_batch_12c (#4412)
1 parent 8e6a316 commit 0ee26cf

File tree

5 files changed

+21
-21
lines changed

5 files changed

+21
-21
lines changed

xml/System/Array.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6464,17 +6464,17 @@ int[,,] TDArray = new int[1,1,1];
64646464

64656465
As the following example shows, the <xref:System.Array.Reverse%2A> method can be used to reverse a jagged array. It initializes a jagged array with one element for each month of the current year in the current culture's calendar. Each element contains an array with as many elements as that month has days. The example displays the contents of the array, calls the <xref:System.Array.Reverse%2A> method, and then displays the contents of the reversed array.
64666466

6467-
[!code-csharp[System.Array.Reverse#1](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.array.reverse/cs/reversejagged.cs#1)]
6468-
[!code-vb[System.Array.Reverse#1](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.array.reverse/vb/reversejagged.vb#1)]
6467+
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.array.reverse/cs/reversejagged.cs" interactive="try-dotnet" id="Snippet1":::
6468+
:::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.array.reverse/vb/reversejagged.vb" id="Snippet1":::
64696469

64706470

64716471

64726472
## Examples
64736473
The following code example shows how to reverse the sort of the values in an <xref:System.Array>.
64746474

6475-
[!code-cpp[Classic Array.Reverse Example#1](~/samples/snippets/cpp/VS_Snippets_CLR_Classic/classic Array.Reverse Example/CPP/source.cpp#1)]
6476-
[!code-csharp[Classic Array.Reverse Example#1](~/samples/snippets/csharp/VS_Snippets_CLR_Classic/classic Array.Reverse Example/CS/source.cs#1)]
6477-
[!code-vb[Classic Array.Reverse Example#1](~/samples/snippets/visualbasic/VS_Snippets_CLR_Classic/classic Array.Reverse Example/VB/source.vb#1)]
6475+
:::code language="cpp" source="~/samples/snippets/cpp/VS_Snippets_CLR_Classic/classic Array.Reverse Example/CPP/source.cpp" id="Snippet1":::
6476+
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_Classic/classic Array.Reverse Example/CS/source.cs" interactive="try-dotnet" id="Snippet1":::
6477+
:::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_Classic/classic Array.Reverse Example/VB/source.vb" id="Snippet1":::
64786478

64796479
]]></format>
64806480
</remarks>
@@ -6551,9 +6551,9 @@ int[,,] TDArray = new int[1,1,1];
65516551
## Examples
65526552
The following code example shows how to reverse the sort of the values in a range of elements in an <xref:System.Array>.
65536553

6554-
[!code-cpp[Classic Array.Reverse1 Example#1](~/samples/snippets/cpp/VS_Snippets_CLR_Classic/classic Array.Reverse1 Example/CPP/source.cpp#1)]
6555-
[!code-csharp[Classic Array.Reverse1 Example#1](~/samples/snippets/csharp/VS_Snippets_CLR_Classic/classic Array.Reverse1 Example/CS/source.cs#1)]
6556-
[!code-vb[Classic Array.Reverse1 Example#1](~/samples/snippets/visualbasic/VS_Snippets_CLR_Classic/classic Array.Reverse1 Example/VB/source.vb#1)]
6554+
:::code language="cpp" source="~/samples/snippets/cpp/VS_Snippets_CLR_Classic/classic Array.Reverse1 Example/CPP/source.cpp" id="Snippet1":::
6555+
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_Classic/classic Array.Reverse1 Example/CS/source.cs" interactive="try-dotnet" id="Snippet1":::
6556+
:::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_Classic/classic Array.Reverse1 Example/VB/source.vb" id="Snippet1":::
65576557

65586558
]]></format>
65596559
</remarks>

xml/System/DateTime.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9149,8 +9149,8 @@ The value of the current <xref:System.DateTime> object is formatted using the pa
91499149
## Remarks
91509150
The <xref:System.DateTime.Year%2A> property returns the year of the current instance in the Gregorian calendar. It does not return the year using the default calendar of the current culture. To retrieve the year using a particular calendar, you can call that calendar's `GetYear` method, as the following code shows.
91519151

9152-
[!code-csharp[System.DateTime.Year#1](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.DateTime.Year/cs/Year.cs#1)]
9153-
[!code-vb[System.DateTime.Year#1](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.DateTime.Year/vb/Year.vb#1)]
9152+
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.DateTime.Year/cs/Year.cs" interactive="try-dotnet" id="Snippet1":::
9153+
:::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.DateTime.Year/vb/Year.vb" id="Snippet1":::
91549154

91559155

91569156

xml/System/Exception.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -639,9 +639,9 @@ Stack Trace:
639639
## Examples
640640
The following example demonstrates how to add and retrieve information using the <xref:System.Exception.Data%2A> property.
641641
642-
[!code-cpp[exception.data#1](~/samples/snippets/cpp/VS_Snippets_CLR/exception.data/CPP/data.cpp#1)]
643-
[!code-csharp[exception.data#1](~/samples/snippets/csharp/VS_Snippets_CLR/exception.data/CS/data.cs#1)]
644-
[!code-vb[exception.data#1](~/samples/snippets/visualbasic/VS_Snippets_CLR/exception.data/VB/data.vb#1)]
642+
:::code language="cpp" source="~/samples/snippets/cpp/VS_Snippets_CLR/exception.data/CPP/data.cpp" id="Snippet1":::
643+
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR/exception.data/CS/data.cs" interactive="try-dotnet" id="Snippet1":::
644+
:::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR/exception.data/VB/data.vb" id="Snippet1":::
645645
646646
]]></format>
647647
</remarks>

xml/System/TimeSpan.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4334,8 +4334,8 @@ This member is an explicit interface member implementation. It can be used only
43344334
## Examples
43354335
The following example calls the <xref:System.TimeSpan.ToString%28System.String%2CSystem.IFormatProvider%29> method to format two time intervals. The example calls the method twice for each format string, first to display it using the conventions of the en-US culture and then to display it using the conventions of the fr-FR culture.
43364336
4337-
[!code-csharp[System.TimeSpan.ToString#4](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.TimeSpan.ToString/cs/tostring4.cs#4)]
4338-
[!code-vb[System.TimeSpan.ToString#4](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.TimeSpan.ToString/vb/tostring4.vb#4)]
4337+
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.TimeSpan.ToString/cs/tostring4.cs" interactive="try-dotnet" id="Snippet4":::
4338+
:::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.TimeSpan.ToString/vb/tostring4.vb" id="Snippet4":::
43394339
43404340
]]></format>
43414341
</remarks>

xml/System/Tuple.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@
5656
5757
Although you can create an instance of a tuple class by calling its class constructor, the code to do so can be cumbersome. The following example uses a class constructor to create a 7-tuple or septuple that contains population data for New York City for each census from 1950 through 2000.
5858
59-
[!code-csharp[System.Tuple.Class#1](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.tuple.class/cs/example1.cs#1)]
60-
[!code-vb[System.Tuple.Class#1](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.tuple.class/vb/example1.vb#1)]
59+
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.tuple.class/cs/example1.cs" interactive="try-dotnet-method" id="Snippet1":::
60+
:::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.tuple.class/vb/example1.vb" id="Snippet1":::
6161
6262
Creating the same tuple object by using a helper method is more straightforward, as the following example shows.
6363
64-
[!code-csharp[System.Tuple.Class#2](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.tuple.class/cs/example1.cs#2)]
65-
[!code-vb[System.Tuple.Class#2](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.tuple.class/vb/example1.vb#2)]
64+
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.tuple.class/cs/example1.cs" interactive="try-dotnet-method" id="Snippet2":::
65+
:::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.tuple.class/vb/example1.vb" id="Snippet2":::
6666
6767
The <xref:System.Tuple.Create%2A> helper methods directly support the creation of tuple objects that have from one to eight components (that is, singletons through octuples). Although there is no practical limit to the number of components a tuple may have, helper methods are not available to create a tuple with nine or more components. To create such a tuple, you must call the <xref:System.Tuple%608.%23ctor%2A?displayProperty=nameWithType> constructor.
6868
@@ -74,8 +74,8 @@
7474
## Examples
7575
The following example creates an 8-tuple (octuple) that contains prime numbers that are less than 20.
7676
77-
[!code-csharp[System.Tuple.Create#17](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.tuple.create/cs/createntuple.cs#17)]
78-
[!code-vb[System.Tuple.Create#17](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.tuple.create/vb/createntuple.vb#17)]
77+
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.tuple.create/cs/createntuple.cs" interactive="try-dotnet-method" id="Snippet17":::
78+
:::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.tuple.create/vb/createntuple.vb" id="Snippet17":::
7979
8080
]]></format>
8181
</remarks>

0 commit comments

Comments
 (0)