DEV Community

Supraja Tangella
Supraja Tangella

Posted on

๐—ข๐—ป๐—น๐˜† ๐Ÿญ ๐—ข๐˜‚๐˜ ๐—ผ๐—ณ ๐Ÿฑ ๐——๐—ฒ๐˜ƒ๐—ฒ๐—น๐—ผ๐—ฝ๐—ฒ๐—ฟ๐˜€ ๐—ฆ๐—ฝ๐—ผ๐˜ ๐—ง๐—ต๐—ถ๐˜€ ๐—•๐˜‚๐—ด ๐—œ๐—ป๐˜€๐˜๐—ฎ๐—ป๐˜๐—น๐˜† โ€” ๐—–๐—ฎ๐—ป ๐—ฌ๐—ผ๐˜‚?

Can you spot whatโ€™s wrong in this C# code image?

๐Ÿ‘‰ The code runs successfully โ€” but the output is not what most developers expect!
Can you find the mistake and share the correct output and fix in the comments?

(Hint: Somethingโ€™s off with the LINQ query result type ๐Ÿ˜‰)

Top comments (0)