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...

ความคิดเห็น • 8

  • @kskunk
    @kskunk 2 หลายเดือนก่อน

    💯Best SelectMany explanation!! Thanks for all the many examples and code!!

  • @fkbey5756
    @fkbey5756 7 หลายเดือนก่อน

    Thank you for your clear English and your time.

  • @mins_91
    @mins_91 ปีที่แล้ว

    Thank you very much for this clear explanation

  • @kidsvlog1309
    @kidsvlog1309 10 หลายเดือนก่อน

    awesome explanation ❤

  • @ChelseaBerneri-d7j
    @ChelseaBerneri-d7j 15 วันที่ผ่านมา

    Amanda Avenue

  • @darkwhite123
    @darkwhite123 6 หลายเดือนก่อน

    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?

  • @Ashkannetss
    @Ashkannetss 4 หลายเดือนก่อน

    Great

  • @LesEuell-f2z
    @LesEuell-f2z 15 วันที่ผ่านมา

    Pacocha Summit