Difference between Select and SelectMany in LINQ in C#

Поделиться
HTML-код
  • Опубликовано: 23 авг 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...

Комментарии • 6

  • @kskunk
    @kskunk Месяц назад

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

  • @fkbey5756
    @fkbey5756 5 месяцев назад

    Thank you for your clear English and your time.

  • @mins_91
    @mins_91 11 месяцев назад

    Thank you very much for this clear explanation

  • @kidsvlog1309
    @kidsvlog1309 8 месяцев назад

    awesome explanation ❤

  • @user-wj6sw6lz3i
    @user-wj6sw6lz3i 2 месяца назад

    Great

  • @darkwhite123
    @darkwhite123 4 месяца назад

    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?