Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contradictory information on LINQ "group by" docs #41003

Open
matheusanmo opened this issue May 18, 2024 · 1 comment
Open

Contradictory information on LINQ "group by" docs #41003

matheusanmo opened this issue May 18, 2024 · 1 comment
Labels
doc-enhancement Improve the current content [org][type][category] dotnet-csharp/svc lang-reference/subsvc Pri2

Comments

@matheusanmo
Copy link

Type of issue

Missing information

Description

The Grouping Data page says at the first table that GroupBy's usage in LINQ is either group ... by or group ... by ... into ....
This seems to contradict the group clause page, which does not mention any usage of the group ... by, only group ... by ....
If I'm correct I believe the Grouping Data page should change group ... by to group ... by ... in its table.

Page URL

https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/group-clause

Content source URL

https://github.com/dotnet/docs/blob/main/docs/csharp/language-reference/keywords/group-clause.md

Document Version Independent Id

a3aa9b7d-0cc1-778d-b01b-6bedcd80799b

Article author

@BillWagner

Metadata

  • ID: 781a32e0-448c-2ca7-649f-5bf181302ec3
  • Service: dotnet-csharp
  • Sub-service: lang-reference
@dotnet-bot dotnet-bot added the ⌚ Not Triaged Not triaged label May 18, 2024
@matheusanmo matheusanmo changed the title Contradictory information on LINQ "group" clause Contradictory information on LINQ "group by" docs May 18, 2024
@BillWagner
Copy link
Member

I'll keep this open to look at in the next update.

It's not too much of a contradiction: The into keyword is used to make the output of a group by query the input to another query.

@BillWagner BillWagner added doc-enhancement Improve the current content [org][type][category] and removed ⌚ Not Triaged Not triaged labels Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-enhancement Improve the current content [org][type][category] dotnet-csharp/svc lang-reference/subsvc Pri2
Projects
None yet
Development

No branches or pull requests

3 participants