Skip to content

Compile error in "Creating the data set (Method syntax )" #9188

@KeyvanKashani

Description

@KeyvanKashani

Hello ,
Thanks for this helpful documentation .
I think the following code has an error .
Suits().SelectMany(suit => Ranks(rank => new { Suit = suit, Rank = rank }));
"No overload for method 'Ranks' takes 1 arguments [linq]"
To produce the same result as query syntax, suggested code would be
Suits().SelectMany(suit => Ranks().Select(rank => new {Suits=suit ,Rank=rank }));


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions