Skip to content

Commit 9460abb

Browse files
authored
fix snippet tag position (#1861)
* fix snippet tag position * remove extra space * fix snippet tag position
1 parent 055dea7 commit 9460abb

File tree

2 files changed

+8
-8
lines changed
  • snippets/csharp/VS_Snippets_CLR_System
    • system.Collections.Generic.HashSet_Clear/cs
    • system.Collections.Generic.HashSet_UnionWith/cs

2 files changed

+8
-8
lines changed

snippets/csharp/VS_Snippets_CLR_System/system.Collections.Generic.HashSet_Clear/cs/Program.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
//<snippet01>
2-
using System;
1+
using System;
32
using System.Collections.Generic;
43

54
class Program
65
{
76
static void Main()
87
{
8+
//<snippet01>
99
//<snippet02>
1010
HashSet<int> Numbers = new HashSet<int>();
1111

@@ -22,6 +22,7 @@ static void Main()
2222

2323
Console.Write("Numbers contains {0} elements: ", Numbers.Count);
2424
DisplaySet(Numbers);
25+
//</snippet02>
2526

2627
void DisplaySet(HashSet<int> set)
2728
{
@@ -37,7 +38,6 @@ void DisplaySet(HashSet<int> set)
3738
* Numbers contains 10 elements: { 0 1 2 3 4 5 6 7 8 9 }
3839
* Numbers contains 0 elements: { }
3940
*/
40-
//</snippet02>
41+
//</snippet01>
4142
}
4243
}
43-
//</snippet01>

snippets/csharp/VS_Snippets_CLR_System/system.Collections.Generic.HashSet_UnionWith/cs/Program.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
// <snippet01>
2-
using System;
1+
using System;
32
using System.Collections.Generic;
43

54
class Program
65
{
76
static void Main()
87
{
8+
//<snippet01>
99
//<snippet02>
1010
//<snippet03>
1111
HashSet<int> evenNumbers = new HashSet<int>();
@@ -34,6 +34,7 @@ static void Main()
3434

3535
Console.Write("numbers contains {0} elements: ", numbers.Count);
3636
DisplaySet(numbers);
37+
//</snippet02>
3738

3839
void DisplaySet(HashSet<int> set)
3940
{
@@ -51,7 +52,6 @@ void DisplaySet(HashSet<int> set)
5152
* numbers UnionWith oddNumbers...
5253
* numbers contains 10 elements: { 0 2 4 6 8 1 3 5 7 9 }
5354
*/
54-
//</snippet02>
55+
//</snippet01>
5556
}
5657
}
57-
// </snippet01>

0 commit comments

Comments
 (0)