LINQ Query Expressions From, Where, Orderby, and Select [Pt 16] | C# for Beginners

Поділитися
Вставка
  • Опубліковано 9 січ 2025

КОМЕНТАРІ • 21

  • @1015AK
    @1015AK 11 місяців тому +23

    After searching for what seemed like hundreds of C# beginner intro tutorials so I understood basic stuff so I could get more confident in diving into the docs, I wanted to say that this series has been a lifesaver. You two are great at what you do. Don't stop! Keep making even more tutorials together whether it be certain things about C# or continuing this series. You two just have such a great chemistry where you switch roles between student and teacher and often ask questions to each other we are thinking to ourselves while we are learning. Fantastic job guys.

  • @sampruett6701
    @sampruett6701 8 місяців тому +8

    Best part about this video is “IEnumberable is the question and not the answer.” Such a great point, and helps to understand the movenext concept under the covers.

  • @pabloalcoriza4410
    @pabloalcoriza4410 3 місяці тому +1

    Congratulations David and Scott for this material. The way you explain all these concepts so simply is just amazing! You guys rock!

  • @Anon-h3q
    @Anon-h3q Місяць тому

    Thank you I'm coming from TypeScript and Java and the basic concepts are same but you guys explain details, syntax sugar and etc really well. I wish Blazor is also that easy as React.

  • @kuje89
    @kuje89 Рік тому +2

    Grazie mille per questa lezione!

  • @gttrackpro9433
    @gttrackpro9433 7 місяців тому +1

    part 16. till this part i didn't see any ads appears in video 😂. what a focus learning 🤗

  • @safehaven6544
    @safehaven6544 11 місяців тому +5

    I'm a senior dev I don't know how LINQ works hahaha thank you !

  • @kisszajbert1
    @kisszajbert1 8 місяців тому +2

    Thank you Gentlemen!

  • @AthelstanEngland
    @AthelstanEngland 5 місяців тому

    Is LINQ slower in operation than simply iterating through the original list? For most instances I guess it doesn't matter but for a larger dataset and perhaps several where clauses is it significant?

    • @tmhchacham
      @tmhchacham 4 місяці тому

      LINQ is faster. In most instances, the speed it not really noticeable anyway.

  • @gttrackpro9433
    @gttrackpro9433 7 місяців тому +1

    i don't know why, it will ber very readable if the LINQ Query update to
    "select score in scores
    where score > 80
    order score descending"
    because it use multiple time "score" from score, at the end select score. uhh so weird 😒

    • @tmhchacham
      @tmhchacham 4 місяці тому

      It's easier to look at it as: the from clause includes, the where clause excludes, the select clause outputs. Or, the from clause decides which box we are getting from, the where clause filters what's in the box, and the select clause shows us the results. Using that paradigm, the select clause should come last, because it is the last operation.

  • @aids2132
    @aids2132 9 місяців тому +1

    they're so cool

  • @gilbertigwegbe9481
    @gilbertigwegbe9481 Рік тому +2

    First time hearing David Fowler talk... definitely not what I was expecting him to sound like 😅
    But great lesson though.

  • @jessedv5915
    @jessedv5915 7 місяців тому

    List names = ["Sam", "John", "Xavior", "Ash", "Mick"];
    names.Sort();
    IEnumerable namesQuery =
    from name in names
    select name;
    Console.WriteLine($"There are {names.Count()} names");
    foreach (string s in names)
    {
    Console.WriteLine($"The name {s} has {s.Length} letters ");
    }
    this was really fun to write but how do i get only name with more than like 4 letters

    • @jessedv5915
      @jessedv5915 7 місяців тому

      Is Linq still applicable if you use Strings like me?

    • @John-Dawg677
      @John-Dawg677 7 місяців тому

      Inside your foreach, you can add an IF statement enclosing the console writeline
      foreach (string s in names)
      {
      *if(s.Length > 4)*
      Console.WriteLine($"The name {s} has {s.Length} letters ");
      }

  • @1conscience0dimension
    @1conscience0dimension Місяць тому

    good stuf