Skip to content

Commit 9d54d3c

Browse files
authored
.NET Interactive: Enable_try_dotnet_to_batch_7c (#4202)
* enable_try_dotnet_to_batch_7c * add_missing_update
1 parent 5a1a453 commit 9d54d3c

File tree

2 files changed

+46
-46
lines changed

2 files changed

+46
-46
lines changed

xml/System.Collections.Generic/SortedDictionary`2.xml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,8 @@
203203
204204
This code example is part of a larger example provided for the <xref:System.Collections.Generic.SortedDictionary%602> class.
205205
206-
[!code-csharp[Generic.SortedDictionary#2](~/samples/snippets/csharp/VS_Snippets_CLR/Generic.SortedDictionary/CS/source.cs#2)]
207-
[!code-vb[Generic.SortedDictionary#2](~/samples/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary/VB/source.vb#2)]
206+
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR/Generic.SortedDictionary/CS/source.cs" interactive="try-dotnet-method" id="Snippet2":::
207+
:::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary/VB/source.vb" id="Snippet2":::
208208
209209
]]></format>
210210
</remarks>
@@ -262,8 +262,8 @@
262262
## Examples
263263
The following code example creates a <xref:System.Collections.Generic.SortedDictionary%602> with a case-insensitive comparer for the current culture. The example adds four elements, some with lower-case keys and some with upper-case keys. The example then attempts to add an element with a key that differs from an existing key only by case, catches the resulting exception, and displays an error message. Finally, the example displays the elements in case-insensitive sort order.
264264
265-
[!code-csharp[Generic.SortedDictionary.ctor_IComp#1](~/samples/snippets/csharp/VS_Snippets_CLR/Generic.SortedDictionary.ctor_IComp/CS/source.cs#1)]
266-
[!code-vb[Generic.SortedDictionary.ctor_IComp#1](~/samples/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary.ctor_IComp/VB/source.vb#1)]
265+
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR/Generic.SortedDictionary.ctor_IComp/CS/source.cs" interactive="try-dotnet" id="Snippet1":::
266+
:::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary.ctor_IComp/VB/source.vb" id="Snippet1":::
267267
268268
]]></format>
269269
</remarks>
@@ -327,8 +327,8 @@
327327
## Examples
328328
The following code example shows how to use <xref:System.Collections.Generic.SortedDictionary%602> to create a sorted copy of the information in a <xref:System.Collections.Generic.Dictionary%602>, by passing the <xref:System.Collections.Generic.Dictionary%602> to the <xref:System.Collections.Generic.SortedDictionary%602.%23ctor%28System.Collections.Generic.IComparer%7B%600%7D%29> constructor.
329329
330-
[!code-csharp[Generic.SortedDictionary.ctor_IDic#1](~/samples/snippets/csharp/VS_Snippets_CLR/Generic.SortedDictionary.ctor_IDic/CS/source.cs#1)]
331-
[!code-vb[Generic.SortedDictionary.ctor_IDic#1](~/samples/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary.ctor_IDic/VB/source.vb#1)]
330+
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR/Generic.SortedDictionary.ctor_IDic/CS/source.cs" interactive="try-dotnet" id="Snippet1":::
331+
:::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary.ctor_IDic/VB/source.vb" id="Snippet1":::
332332
333333
]]></format>
334334
</remarks>
@@ -393,8 +393,8 @@
393393
## Examples
394394
The following code example shows how to use <xref:System.Collections.Generic.SortedDictionary%602> to create a case-insensitive sorted copy of the information in a case-insensitive <xref:System.Collections.Generic.Dictionary%602>, by passing the <xref:System.Collections.Generic.Dictionary%602> to the <xref:System.Collections.Generic.SortedDictionary%602.%23ctor%28System.Collections.Generic.IDictionary%7B%600%2C%601%7D%2CSystem.Collections.Generic.IComparer%7B%600%7D%29> constructor. In this example, the case-insensitive comparers are for the current culture.
395395
396-
[!code-csharp[Generic.SortedDictionary.ctor_IDicIComp#1](~/samples/snippets/csharp/VS_Snippets_CLR/Generic.SortedDictionary.ctor_IDicIComp/CS/source.cs#1)]
397-
[!code-vb[Generic.SortedDictionary.ctor_IDicIComp#1](~/samples/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary.ctor_IDicIComp/VB/source.vb#1)]
396+
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR/Generic.SortedDictionary.ctor_IDicIComp/CS/source.cs" interactive="try-dotnet" id="Snippet1":::
397+
:::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary.ctor_IDicIComp/VB/source.vb" id="Snippet1":::
398398
399399
]]></format>
400400
</remarks>
@@ -468,8 +468,8 @@
468468
469469
This code example is part of a larger example provided for the <xref:System.Collections.Generic.SortedDictionary%602> class.
470470
471-
[!code-csharp[Generic.SortedDictionary#2](~/samples/snippets/csharp/VS_Snippets_CLR/Generic.SortedDictionary/CS/source.cs#2)]
472-
[!code-vb[Generic.SortedDictionary#2](~/samples/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary/VB/source.vb#2)]
471+
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR/Generic.SortedDictionary/CS/source.cs" interactive="try-dotnet-method" id="Snippet2":::
472+
:::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary/VB/source.vb" id="Snippet2":::
473473
474474
]]></format>
475475
</remarks>

0 commit comments

Comments
 (0)