Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a1bbbb2

Browse files
authored
fix sample inversion (dotnet#2243)
1 parent 35be38d commit a1bbbb2

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

xml/System.Net/HttpListener.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -408,12 +408,11 @@
408408
409409
This method shut downs the <xref:System.Net.HttpListener> object without processing queued requests. Any pending requests are unable to complete.
410410
411-
412-
413411
## Examples
414-
The following code example demonstrates calling this method.
412+
413+
The following code example demonstrates calling the `Close` method:
415414
416-
[!code-csharp[Net_Listener_Basic#2](~/samples/snippets/csharp/VS_Snippets_Remoting/Net_Listener_Basic/CS/test.cs#2)]
415+
[!code-csharp[Net_Listener_Basic#12](~/samples/snippets/csharp/VS_Snippets_Remoting/Net_Listener_Basic/CS/test.cs#12)]
417416
418417
]]></format>
419418
</remarks>
@@ -1136,9 +1135,10 @@
11361135
11371136
11381137
## Examples
1139-
The following code example demonstrates using the <xref:System.Net.HttpListener.Stop%2A> method to stop processing incoming requests.
1140-
1141-
[!code-csharp[Net_Listener_Basic#12](~/samples/snippets/csharp/VS_Snippets_Remoting/Net_Listener_Basic/CS/test.cs#12)]
1138+
1139+
The following code example demonstrates using the <xref:System.Net.HttpListener.Stop%2A> method to stop processing incoming requests.
1140+
1141+
[!code-csharp[Net_Listener_Basic#2](~/samples/snippets/csharp/VS_Snippets_Remoting/Net_Listener_Basic/CS/test.cs#2)]
11421142
11431143
]]></format>
11441144
</remarks>
@@ -1302,4 +1302,4 @@
13021302
</Docs>
13031303
</Member>
13041304
</Members>
1305-
</Type>
1305+
</Type>

0 commit comments

Comments
 (0)