Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions includes/csharp-interactive-note-some.md

This file was deleted.

3 changes: 0 additions & 3 deletions includes/csharp-interactive-note.md

This file was deleted.

8 changes: 0 additions & 8 deletions xml/System.Collections.Generic/Dictionary`2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,6 @@

## Examples

[!INCLUDE[interactive-note](~/includes/csharp-interactive-note.md)]

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.

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.
Expand Down Expand Up @@ -207,8 +205,6 @@

## Examples

[!INCLUDE[interactive-note](~/includes/csharp-interactive-note-some.md)]

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.

This code example is part of a larger example provided for the <xref:System.Collections.Generic.Dictionary%602> class.
Expand Down Expand Up @@ -720,8 +716,6 @@

## Examples

[!INCLUDE[interactive-note](~/includes/csharp-interactive-note.md)]

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.

This code example is part of a larger example provided for the <xref:System.Collections.Generic.Dictionary%602> class.
Expand Down Expand Up @@ -1232,8 +1226,6 @@

## Examples

[!INCLUDE[interactive-note](~/includes/csharp-interactive-note-some.md)]

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.

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.
Expand Down
20 changes: 0 additions & 20 deletions xml/System.Collections.Generic/List`1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,6 @@

## Examples

[!INCLUDE[interactive-note](~/includes/csharp-interactive-note-some.md)]

The following example demonstrates how to add, remove, and insert a simple business object in a <xref:System.Collections.Generic.List%601>.

[!code-csharp[System.Collections.Generic.List.AddRemoveInsert#1](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.collections.generic.list.addremoveinsert/cs/program.cs#1)]
Expand Down Expand Up @@ -207,8 +205,6 @@

## Examples

[!INCLUDE[interactive-note](~/includes/csharp-interactive-note-some.md)]

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.

The example adds, inserts, and removes items, showing how the capacity changes as these methods are used.
Expand Down Expand Up @@ -399,8 +395,6 @@

## Examples

[!INCLUDE[interactive-note](~/includes/csharp-interactive-note-some.md)]

The following example demonstrates how to add, remove, and insert a simple business object in a <xref:System.Collections.Generic.List%601>.

[!code-csharp[System.Collections.Generic.List.AddRemoveInsert#1](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.collections.generic.list.addremoveinsert/cs/program.cs#1)]
Expand Down Expand Up @@ -863,8 +857,6 @@

## Examples

[!INCLUDE[interactive-note](~/includes/csharp-interactive-note-some.md)]

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.

[!code-csharp[System.Collections.Generic.List.CapacityCount#1](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.collections.generic.list.capacitycount/cs/program.cs#1)]
Expand Down Expand Up @@ -938,8 +930,6 @@

## Examples

[!INCLUDE[interactive-note](~/includes/csharp-interactive-note.md)]

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.

[!code-cpp[List\`1_Class#1](~/samples/snippets/cpp/VS_Snippets_CLR/List`1_Class/cpp/source.cpp#1)]
Expand Down Expand Up @@ -1369,8 +1359,6 @@

## Examples

[!INCLUDE[interactive-note](~/includes/csharp-interactive-note-some.md)]

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.

[!code-csharp[System.Collections.Generic.List.CapacityCount#1](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.collections.generic.list.capacitycount/cs/program.cs#1)]
Expand Down Expand Up @@ -2761,8 +2749,6 @@ Public Function StartsWith(e As Employee) As Boolean

## Examples

[!INCLUDE[interactive-note](~/includes/csharp-interactive-note-some.md)]

The following example demonstrates how to add, remove, and insert a simple business object in a <xref:System.Collections.Generic.List%601>.

[!code-csharp[System.Collections.Generic.List.AddRemoveInsert#1](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.collections.generic.list.addremoveinsert/cs/program.cs#1)]
Expand Down Expand Up @@ -3226,8 +3212,6 @@ Public Function StartsWith(e As Employee) As Boolean

## Examples

[!INCLUDE[interactive-note](~/includes/csharp-interactive-note-some.md)]

The following example demonstrates how to add, remove, and insert a simple business object in a <xref:System.Collections.Generic.List%601>.

[!code-csharp[System.Collections.Generic.List.AddRemoveInsert#1](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.collections.generic.list.addremoveinsert/cs/program.cs#1)]
Expand Down Expand Up @@ -3666,8 +3650,6 @@ Public Function StartsWith(e As Employee) As Boolean

## Examples

[!INCLUDE[interactive-note](~/includes/csharp-interactive-note-some.md)]

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.

[!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)]
Expand Down Expand Up @@ -4902,8 +4884,6 @@ finally

## Examples

[!INCLUDE[interactive-note](~/includes/csharp-interactive-note-some.md)]

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.

[!code-csharp[System.Collections.Generic.List.CapacityCount#1](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.collections.generic.list.capacitycount/cs/program.cs#1)]
Expand Down
28 changes: 3 additions & 25 deletions xml/System.Linq/Enumerable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2904,8 +2904,6 @@ The set difference of two sets is defined as the members of the first set that d
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`.
Only unique elements are returned.

[!INCLUDE[interactive-note](~/includes/csharp-interactive-note-some.md)]

]]></format>
</remarks>
<related type="Article" href="https://docs.microsoft.com/dotnet/api/system.linq.enumerable.intersect">Enumerable.Intersect Method</related>
Expand Down Expand Up @@ -4122,13 +4120,7 @@ Only unique elements are returned.
</AssemblyInfo>
<Docs>
<summary>Produces the set intersection of two sequences.</summary>
<remarks>
<format type="text/markdown"><![CDATA[

[!INCLUDE[interactive-note](~/includes/csharp-interactive-note-some.md)]

]]></format>
</remarks>
<remarks>To be added.</remarks>
<related type="Article" href="https://docs.microsoft.com/dotnet/api/system.linq.enumerable.except">Enumerable.Except Method</related>
</Docs>
</MemberGroup>
Expand Down Expand Up @@ -8543,15 +8535,7 @@ Only unique elements are returned.
</AssemblyInfo>
<Docs>
<summary>Projects each element of a sequence into a new form.</summary>
<remarks>
<format type="text/markdown"><![CDATA[

## Remarks

[!INCLUDE[interactive-note](~/includes/csharp-interactive-note.md)]

]]></format>
</remarks>
<remarks>To be added.</remarks>
</Docs>
</MemberGroup>
<Member MemberName="Select&lt;TSource,TResult&gt;">
Expand Down Expand Up @@ -12468,13 +12452,7 @@ If `count` is not a positive number, this method returns an empty enumerable col
</AssemblyInfo>
<Docs>
<summary>Produces the set union of two sequences.</summary>
<remarks>
<format type="text/markdown"><![CDATA[

[!INCLUDE[interactive-note](~/includes/csharp-interactive-note-some.md)]

]]></format>
</remarks>
<remarks>To be added.</remarks>
</Docs>
</MemberGroup>
<Member MemberName="Union&lt;TSource&gt;">
Expand Down
2 changes: 0 additions & 2 deletions xml/System/Action`1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,6 @@
## Examples
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.

[!INCLUDE[interactive-note](~/includes/csharp-interactive-note-some.md)]

[!code-csharp-interactive[System.Action_PrintExample#01](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.Action_PrintExample/cs/action.cs#01)]
[!code-vb[System.Action_PrintExample#01](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Action_PrintExample/vb/action.vb#01)]

Expand Down
22 changes: 2 additions & 20 deletions xml/System/Array.xml
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,6 @@

## Examples

[!INCLUDE[interactive-note](~/includes/csharp-interactive-note-some.md)]

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>.

[!code-cpp[Classic Array Example#1](~/samples/snippets/cpp/VS_Snippets_CLR_Classic/classic Array Example/CPP/source.cpp#1)]
Expand Down Expand Up @@ -4754,15 +4752,7 @@
</AssemblyInfo>
<Docs>
<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>
<remarks>
<format type="text/markdown"><![CDATA[

## Remarks

[!INCLUDE[interactive-note](~/includes/csharp-interactive-note.md)]

]]></format>
</remarks>
<remarks>To be added.</remarks>
</Docs>
</MemberGroup>
<Member MemberName="IndexOf">
Expand Down Expand Up @@ -5514,15 +5504,7 @@
</AssemblyInfo>
<Docs>
<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>
<remarks>
<format type="text/markdown"><![CDATA[

## Remarks

[!INCLUDE[interactive-note](~/includes/csharp-interactive-note.md)]

]]></format>
</remarks>
<remarks>To be added.</remarks>
</Docs>
</MemberGroup>
<Member MemberName="LastIndexOf">
Expand Down
2 changes: 0 additions & 2 deletions xml/System/Console.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4801,8 +4801,6 @@
## Remarks
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.

[!INCLUDE[interactive-note](~/includes/csharp-interactive-note-some.md)]

]]></format>
</remarks>
</Docs>
Expand Down
6 changes: 0 additions & 6 deletions xml/System/DateTime.xml
Original file line number Diff line number Diff line change
Expand Up @@ -504,8 +504,6 @@ The behavior of the .NET Framework and COM means that if your application round-

## Remarks

[!INCLUDE[interactive-note](~/includes/csharp-interactive-note-some.md)]

]]></format>
</remarks>
</Docs>
Expand Down Expand Up @@ -2087,8 +2085,6 @@ The behavior of the .NET Framework and COM means that if your application round-

## Examples

[!INCLUDE[interactive-note](~/includes/csharp-interactive-note.md)]

The following example demonstrates the <xref:System.DateTime.Compare%2A> method.

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

## Examples

[!INCLUDE[interactive-note](~/includes/csharp-interactive-note.md)]

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.

[!code-csharp-interactive[System.DateTime.Ticks#1](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.DateTime.Ticks/cs/Ticks.cs#1)]
Expand Down
2 changes: 0 additions & 2 deletions xml/System/Func`2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,6 @@
## Examples
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.

[!INCLUDE[interactive-note](~/includes/csharp-interactive-note-some.md)]

[!code-csharp-interactive[System.Func~2#5](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.Func~2/cs/Example.cs#5)]
[!code-vb[System.Func~2#5](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Func~2/vb/Example.vb#5)]

Expand Down
10 changes: 0 additions & 10 deletions xml/System/Math.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1124,10 +1124,6 @@
## Remarks
The behavior of this method follows IEEE Standard 754, section 4. This kind of rounding is sometimes called rounding toward positive infinity.

## Examples

[!INCLUDE[midpoint-rounding](~/includes/csharp-interactive-note.md)]

]]></format>
</remarks>
</Docs>
Expand Down Expand Up @@ -2258,10 +2254,6 @@ Dim i2 As Integer = CInt(Math.Ceiling(d2)) ' Result: 7969
## Remarks
The behavior of this method follows IEEE Standard 754, section 4. This kind of rounding is sometimes called rounding toward negative infinity.

## Examples

[!INCLUDE[midpoint-rounding](~/includes/csharp-interactive-note.md)]

]]></format>
</remarks>
</Docs>
Expand Down Expand Up @@ -4705,8 +4697,6 @@ In addition to the examples in the [Remarks](#remarks-round) section, this artic
[Math.Round(Decimal, Int32, MidpointRounding)](#Round7_Example)
[Math.Round(Double, Int32, MidpointRounding)](#Round8_Example)

[!INCLUDE[midpoint-rounding](~/includes/csharp-interactive-note.md)]

]]></format>
</remarks>
<altmember cref="M:System.Math.Ceiling(System.Decimal)" />
Expand Down
Loading