Skip to content

Commit 67e93ec

Browse files
authored
remove try .net note (#3760)
1 parent e51d16c commit 67e93ec

File tree

16 files changed

+10
-184
lines changed

16 files changed

+10
-184
lines changed

includes/csharp-interactive-note-some.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

includes/csharp-interactive-note.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,6 @@
121121
122122
## Examples
123123
124-
[!INCLUDE[interactive-note](~/includes/csharp-interactive-note.md)]
125-
126124
The following code example creates an empty <xref:System.Collections.Generic.Dictionary%602> of strings with string keys and uses the <xref:System.Collections.Generic.Dictionary%602.Add%2A> method to add some elements. The example demonstrates that the <xref:System.Collections.Generic.Dictionary%602.Add%2A> method throws an <xref:System.ArgumentException> when attempting to add a duplicate key.
127125
128126
The example uses the <xref:System.Collections.Generic.Dictionary%602.Item%2A> property (the indexer in C#) to retrieve values, demonstrating that a <xref:System.Collections.Generic.KeyNotFoundException> is thrown when a requested key is not present, and showing that the value associated with a key can be replaced.
@@ -207,8 +205,6 @@
207205
208206
## Examples
209207
210-
[!INCLUDE[interactive-note](~/includes/csharp-interactive-note-some.md)]
211-
212208
The following code example creates an empty <xref:System.Collections.Generic.Dictionary%602> of strings with string keys and uses the <xref:System.Collections.Generic.Dictionary%602.Add%2A> method to add some elements. The example demonstrates that the <xref:System.Collections.Generic.Dictionary%602.Add%2A> method throws an <xref:System.ArgumentException> when attempting to add a duplicate key.
213209
214210
This code example is part of a larger example provided for the <xref:System.Collections.Generic.Dictionary%602> class.
@@ -720,8 +716,6 @@
720716
721717
## Examples
722718
723-
[!INCLUDE[interactive-note](~/includes/csharp-interactive-note.md)]
724-
725719
The following code example creates an empty <xref:System.Collections.Generic.Dictionary%602> of strings with string keys and uses the <xref:System.Collections.Generic.Dictionary%602.Add%2A> method to add some elements. The example demonstrates that the <xref:System.Collections.Generic.Dictionary%602.Add%2A> method throws an <xref:System.ArgumentException> when attempting to add a duplicate key.
726720
727721
This code example is part of a larger example provided for the <xref:System.Collections.Generic.Dictionary%602> class.
@@ -1232,8 +1226,6 @@
12321226
12331227
## Examples
12341228
1235-
[!INCLUDE[interactive-note](~/includes/csharp-interactive-note-some.md)]
1236-
12371229
The following code example uses the <xref:System.Collections.Generic.Dictionary%602.Item%2A> property (the indexer in C#) to retrieve values, demonstrating that a <xref:System.Collections.Generic.KeyNotFoundException> is thrown when a requested key is not present, and showing that the value associated with a key can be replaced.
12381230
12391231
The example also shows how to use the <xref:System.Collections.Generic.Dictionary%602.TryGetValue%2A> method as a more efficient way to retrieve values if a program often must try key values that are not in the dictionary.

xml/System.Collections.Generic/List`1.xml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,6 @@
110110
111111
## Examples
112112
113-
[!INCLUDE[interactive-note](~/includes/csharp-interactive-note-some.md)]
114-
115113
The following example demonstrates how to add, remove, and insert a simple business object in a <xref:System.Collections.Generic.List%601>.
116114
117115
[!code-csharp[System.Collections.Generic.List.AddRemoveInsert#1](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.collections.generic.list.addremoveinsert/cs/program.cs#1)]
@@ -207,8 +205,6 @@
207205
208206
## Examples
209207
210-
[!INCLUDE[interactive-note](~/includes/csharp-interactive-note-some.md)]
211-
212208
The following example demonstrates the parameterless constructor of the <xref:System.Collections.Generic.List%601> generic class. The parameterless constructor creates a list with the default capacity, as demonstrated by displaying the <xref:System.Collections.Generic.List%601.Capacity%2A> property.
213209
214210
The example adds, inserts, and removes items, showing how the capacity changes as these methods are used.
@@ -399,8 +395,6 @@
399395
400396
## Examples
401397
402-
[!INCLUDE[interactive-note](~/includes/csharp-interactive-note-some.md)]
403-
404398
The following example demonstrates how to add, remove, and insert a simple business object in a <xref:System.Collections.Generic.List%601>.
405399
406400
[!code-csharp[System.Collections.Generic.List.AddRemoveInsert#1](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.collections.generic.list.addremoveinsert/cs/program.cs#1)]
@@ -863,8 +857,6 @@
863857
864858
## Examples
865859
866-
[!INCLUDE[interactive-note](~/includes/csharp-interactive-note-some.md)]
867-
868860
The following example demonstrates how to check the capacity and count of a <xref:System.Collections.Generic.List%601> that contains a simple business object, and illustrates using the <xref:System.Collections.Generic.List%601.TrimExcess%2A> method to remove extra capacity.
869861
870862
[!code-csharp[System.Collections.Generic.List.CapacityCount#1](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.collections.generic.list.capacitycount/cs/program.cs#1)]
@@ -938,8 +930,6 @@
938930
939931
## Examples
940932
941-
[!INCLUDE[interactive-note](~/includes/csharp-interactive-note.md)]
942-
943933
The following example demonstrates the <xref:System.Collections.Generic.List%601.Clear%2A> method and various other properties and methods of the <xref:System.Collections.Generic.List%601> generic class. The <xref:System.Collections.Generic.List%601.Clear%2A> method is used at the end of the program, to remove all items from the list, and the <xref:System.Collections.Generic.List%601.Capacity%2A> and <xref:System.Collections.Generic.List%601.Count%2A> properties are then displayed.
944934
945935
[!code-cpp[List\`1_Class#1](~/samples/snippets/cpp/VS_Snippets_CLR/List`1_Class/cpp/source.cpp#1)]
@@ -1369,8 +1359,6 @@
13691359
13701360
## Examples
13711361
1372-
[!INCLUDE[interactive-note](~/includes/csharp-interactive-note-some.md)]
1373-
13741362
The following example demonstrates how to check the capacity and count of a <xref:System.Collections.Generic.List%601> that contains a simple business object, and illustrates using the <xref:System.Collections.Generic.List%601.TrimExcess%2A> method to remove extra capacity.
13751363
13761364
[!code-csharp[System.Collections.Generic.List.CapacityCount#1](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.collections.generic.list.capacitycount/cs/program.cs#1)]
@@ -2761,8 +2749,6 @@ Public Function StartsWith(e As Employee) As Boolean
27612749
27622750
## Examples
27632751
2764-
[!INCLUDE[interactive-note](~/includes/csharp-interactive-note-some.md)]
2765-
27662752
The following example demonstrates how to add, remove, and insert a simple business object in a <xref:System.Collections.Generic.List%601>.
27672753
27682754
[!code-csharp[System.Collections.Generic.List.AddRemoveInsert#1](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.collections.generic.list.addremoveinsert/cs/program.cs#1)]
@@ -3226,8 +3212,6 @@ Public Function StartsWith(e As Employee) As Boolean
32263212
32273213
## Examples
32283214
3229-
[!INCLUDE[interactive-note](~/includes/csharp-interactive-note-some.md)]
3230-
32313215
The following example demonstrates how to add, remove, and insert a simple business object in a <xref:System.Collections.Generic.List%601>.
32323216
32333217
[!code-csharp[System.Collections.Generic.List.AddRemoveInsert#1](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.collections.generic.list.addremoveinsert/cs/program.cs#1)]
@@ -3666,8 +3650,6 @@ Public Function StartsWith(e As Employee) As Boolean
36663650
36673651
## Examples
36683652
3669-
[!INCLUDE[interactive-note](~/includes/csharp-interactive-note-some.md)]
3670-
36713653
The following example adds some names to a `List<String>` object, displays the list in unsorted order, calls the <xref:System.Collections.Generic.List%601.Sort%2A> method, and then displays the sorted list.
36723654
36733655
[!code-csharp-interactive[System.Collections.Generic.List.Sort#2](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.collections.generic.list.sort/cs/Sort1.cs#2)]
@@ -4902,8 +4884,6 @@ finally
49024884
49034885
## Examples
49044886
4905-
[!INCLUDE[interactive-note](~/includes/csharp-interactive-note-some.md)]
4906-
49074887
The following example demonstrates how to check the capacity and count of a <xref:System.Collections.Generic.List%601> that contains a simple business object, and illustrates using the <xref:System.Collections.Generic.List%601.TrimExcess%2A> method to remove extra capacity.
49084888
49094889
[!code-csharp[System.Collections.Generic.List.CapacityCount#1](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.collections.generic.list.capacitycount/cs/program.cs#1)]

xml/System.Linq/Enumerable.xml

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2904,8 +2904,6 @@ The set difference of two sets is defined as the members of the first set that d
29042904
This method returns those elements in `first` that don't appear in `second`. It doesn't return those elements in `second` that don't appear in `first`.
29052905
Only unique elements are returned.
29062906

2907-
[!INCLUDE[interactive-note](~/includes/csharp-interactive-note-some.md)]
2908-
29092907
]]></format>
29102908
</remarks>
29112909
<related type="Article" href="https://docs.microsoft.com/dotnet/api/system.linq.enumerable.intersect">Enumerable.Intersect Method</related>
@@ -4122,13 +4120,7 @@ Only unique elements are returned.
41224120
</AssemblyInfo>
41234121
<Docs>
41244122
<summary>Produces the set intersection of two sequences.</summary>
4125-
<remarks>
4126-
<format type="text/markdown"><![CDATA[
4127-
4128-
[!INCLUDE[interactive-note](~/includes/csharp-interactive-note-some.md)]
4129-
4130-
]]></format>
4131-
</remarks>
4123+
<remarks>To be added.</remarks>
41324124
<related type="Article" href="https://docs.microsoft.com/dotnet/api/system.linq.enumerable.except">Enumerable.Except Method</related>
41334125
</Docs>
41344126
</MemberGroup>
@@ -8543,15 +8535,7 @@ Only unique elements are returned.
85438535
</AssemblyInfo>
85448536
<Docs>
85458537
<summary>Projects each element of a sequence into a new form.</summary>
8546-
<remarks>
8547-
<format type="text/markdown"><![CDATA[
8548-
8549-
## Remarks
8550-
8551-
[!INCLUDE[interactive-note](~/includes/csharp-interactive-note.md)]
8552-
8553-
]]></format>
8554-
</remarks>
8538+
<remarks>To be added.</remarks>
85558539
</Docs>
85568540
</MemberGroup>
85578541
<Member MemberName="Select&lt;TSource,TResult&gt;">
@@ -12468,13 +12452,7 @@ If `count` is not a positive number, this method returns an empty enumerable col
1246812452
</AssemblyInfo>
1246912453
<Docs>
1247012454
<summary>Produces the set union of two sequences.</summary>
12471-
<remarks>
12472-
<format type="text/markdown"><![CDATA[
12473-
12474-
[!INCLUDE[interactive-note](~/includes/csharp-interactive-note-some.md)]
12475-
12476-
]]></format>
12477-
</remarks>
12455+
<remarks>To be added.</remarks>
1247812456
</Docs>
1247912457
</MemberGroup>
1248012458
<Member MemberName="Union&lt;TSource&gt;">

xml/System/Action`1.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,6 @@
8383
## Examples
8484
The following example demonstrates the use of the <xref:System.Action%601> delegate to print the contents of a <xref:System.Collections.Generic.List%601> object. In this example, the `Print` method is used to display the contents of the list to the console. In addition, the C# example also demonstrates the use of anonymous methods to display the contents to the console. Note that the example does not explicitly declare an <xref:System.Action%601> variable. Instead, it passes a reference to a method that takes a single parameter and that does not return a value to the <xref:System.Collections.Generic.List%601.ForEach%2A?displayProperty=nameWithType> method, whose single parameter is an <xref:System.Action%601> delegate. Similarly, in the C# example, an <xref:System.Action%601> delegate is not explicitly instantiated because the signature of the anonymous method matches the signature of the <xref:System.Action%601> delegate that is expected by the <xref:System.Collections.Generic.List%601.ForEach%2A?displayProperty=nameWithType> method.
8585
86-
[!INCLUDE[interactive-note](~/includes/csharp-interactive-note-some.md)]
87-
8886
[!code-csharp-interactive[System.Action_PrintExample#01](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.Action_PrintExample/cs/action.cs#01)]
8987
[!code-vb[System.Action_PrintExample#01](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Action_PrintExample/vb/action.vb#01)]
9088

xml/System/Array.xml

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,6 @@
9494

9595
## Examples
9696

97-
[!INCLUDE[interactive-note](~/includes/csharp-interactive-note-some.md)]
98-
9997
The following code example shows how <xref:System.Array.Copy%2A?displayProperty=nameWithType> copies elements between an array of type integer and an array of type <xref:System.Object>.
10098

10199
[!code-cpp[Classic Array Example#1](~/samples/snippets/cpp/VS_Snippets_CLR_Classic/classic Array Example/CPP/source.cpp#1)]
@@ -4754,15 +4752,7 @@
47544752
</AssemblyInfo>
47554753
<Docs>
47564754
<summary>Searches for the specified object and returns the index of its first occurrence in a one-dimensional array or in a range of elements in the array.</summary>
4757-
<remarks>
4758-
<format type="text/markdown"><![CDATA[
4759-
4760-
## Remarks
4761-
4762-
[!INCLUDE[interactive-note](~/includes/csharp-interactive-note.md)]
4763-
4764-
]]></format>
4765-
</remarks>
4755+
<remarks>To be added.</remarks>
47664756
</Docs>
47674757
</MemberGroup>
47684758
<Member MemberName="IndexOf">
@@ -5514,15 +5504,7 @@
55145504
</AssemblyInfo>
55155505
<Docs>
55165506
<summary>Returns the index of the last occurrence of a value in a one-dimensional <see cref="T:System.Array" /> or in a portion of the <see cref="T:System.Array" />.</summary>
5517-
<remarks>
5518-
<format type="text/markdown"><![CDATA[
5519-
5520-
## Remarks
5521-
5522-
[!INCLUDE[interactive-note](~/includes/csharp-interactive-note.md)]
5523-
5524-
]]></format>
5525-
</remarks>
5507+
<remarks>To be added.</remarks>
55265508
</Docs>
55275509
</MemberGroup>
55285510
<Member MemberName="LastIndexOf">

xml/System/Console.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4801,8 +4801,6 @@
48014801
## Remarks
48024802
The default line terminator is a string whose value is a carriage return followed by a line feed ("\r\n" in C#, or `vbCrLf` in Visual Basic). You can change the line terminator by setting the <xref:System.IO.TextWriter.NewLine%2A?displayProperty=nameWithType> property of the <xref:System.Console.Out%2A> property to another string.
48034803
4804-
[!INCLUDE[interactive-note](~/includes/csharp-interactive-note-some.md)]
4805-
48064804
]]></format>
48074805
</remarks>
48084806
</Docs>

xml/System/DateTime.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -504,8 +504,6 @@ The behavior of the .NET Framework and COM means that if your application round-
504504

505505
## Remarks
506506

507-
[!INCLUDE[interactive-note](~/includes/csharp-interactive-note-some.md)]
508-
509507
]]></format>
510508
</remarks>
511509
</Docs>
@@ -2087,8 +2085,6 @@ The behavior of the .NET Framework and COM means that if your application round-
20872085

20882086
## Examples
20892087

2090-
[!INCLUDE[interactive-note](~/includes/csharp-interactive-note.md)]
2091-
20922088
The following example demonstrates the <xref:System.DateTime.Compare%2A> method.
20932089

20942090
[!code-csharp-interactive[System.DateTime.Compare#1](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.datetime.compare/cs/compare1.cs#1)]
@@ -6934,8 +6930,6 @@ The following example demonstrates the <xref:System.DateTime.Parse%28System.Stri
69346930

69356931
## Examples
69366932

6937-
[!INCLUDE[interactive-note](~/includes/csharp-interactive-note.md)]
6938-
69396933
The following example uses the <xref:System.DateTime.Ticks%2A> property to display the number of ticks that have elapsed since the beginning of the twenty-first century and to instantiate a <xref:System.TimeSpan> object. The <xref:System.TimeSpan> object is then used to display the elapsed time using several other time intervals.
69406934

69416935
[!code-csharp-interactive[System.DateTime.Ticks#1](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.DateTime.Ticks/cs/Ticks.cs#1)]

xml/System/Func`2.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,6 @@
9999
## Examples
100100
The following example demonstrates how to declare and use a <xref:System.Func%602> delegate. This example declares a <xref:System.Func%602> variable and assigns it a lambda expression that converts the characters in a string to uppercase. The delegate that encapsulates this method is subsequently passed to the <xref:System.Linq.Enumerable.Select%2A?displayProperty=nameWithType> method to change the strings in an array of strings to uppercase.
101101
102-
[!INCLUDE[interactive-note](~/includes/csharp-interactive-note-some.md)]
103-
104102
[!code-csharp-interactive[System.Func~2#5](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.Func~2/cs/Example.cs#5)]
105103
[!code-vb[System.Func~2#5](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Func~2/vb/Example.vb#5)]
106104

0 commit comments

Comments
 (0)