Skip to content

Commit e30a306

Browse files
authored
port changes (#558)
1 parent 102b49e commit e30a306

File tree

1 file changed

+2
-6
lines changed
  • snippets/csharp/VS_Snippets_VBCSharp/CsCsrefQueryKeywords/CS

1 file changed

+2
-6
lines changed

snippets/csharp/VS_Snippets_VBCSharp/CsCsrefQueryKeywords/CS/Group.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ from student in students
2626
group student by student.Last[0];
2727
//</snippet10>
2828

29-
30-
3129
// This query could be easily modified to group by the entire last name.
3230
//<Snippet11>
3331
// Group students by the first letter of their last name
@@ -39,7 +37,6 @@ orderby g.Key
3937
select g;
4038
//</snippet11>
4139
Console.WriteLine("The SimpleGroup method produces this output:\r\n");
42-
4340

4441
//<snippet12>
4542
// Iterate group items with a nested foreach. This IGrouping encapsulates
@@ -56,10 +53,9 @@ orderby g.Key
5653
}
5754
//</snippet12>
5855

59-
6056
//<Snippet13>
61-
// Same as previous example except we use the entire last name as a key.
62-
// Query variable is an IEnumerable<IGrouping<string, Student>>
57+
// Same as previous example except we use the entire last name as a key.
58+
// Query variable is an IEnumerable<IGrouping<string, Student>>
6359
var studentQuery3 =
6460
from student in students
6561
group student by student.Last;

0 commit comments

Comments
 (0)