Skip to content

Commit 9502663

Browse files
Update C# linq-related snippet 'GroupQueryResults.cs' (#46817)
Hi, First of all, thanks a lot for your efforts and your rich contents. In the first lines of 'GroupByPropertyMethod' method, which is commented lines, the query variable name should be changed to GroupByYearQuery , and also the type of it to IEnumerable<IGrouping<GradeLevel,DataClass.Student>>.
1 parent 4567d74 commit 9502663

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/csharp/linq/standard-query-operators/snippets/standard-query-operators/GroupQueryResults.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ orderby newGroup.Key
5151
public static void GroupByPropertyMethod()
5252
{
5353
// <GroupByPropertyMethod>
54-
// Variable groupByLastNamesQuery is an IEnumerable<IGrouping<string,
54+
// Variable groupByYearQuery is an IEnumerable<IGrouping<GradeLevel,
5555
// DataClass.Student>>.
5656
var groupByYearQuery = students
5757
.GroupBy(student => student.Year)

0 commit comments

Comments
 (0)