Difference between Select and SelectMany in LINQ in C#
ฝัง
- เผยแพร่เมื่อ 14 ต.ค. 2024
- Everyone knows what the Select operator does in LINQ but many are not aware of how useful the SelectMany operation can be.
C# Answers provides answers to common questions about the C# language and the related .NET system. Do you have a programming question about C# or .NET that you would like answered?
Add it as a comment below and I try to answer them all!
GitHub: github.com/Com...
💯Best SelectMany explanation!! Thanks for all the many examples and code!!
Thank you for your clear English and your time.
Thank you very much for this clear explanation
awesome explanation ❤
Amanda Avenue
what if there are two lists? a list with won years and a list with participated years. selectMany is executed consecutive? so there will be "stupid" duplicates? do you know of a way to achieve such without duplicates?
Great
Pacocha Summit