Language Integrated Query (LINQ) and IEnumerable [Pt 15] | C# for Beginners

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ม.ค. 2025

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

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

    I love the style and conversational approach you guys have taken, this is a real pleasure to watch. I've been programming for decades but can watch content like this all day, it's a masterclass in how to explain concepts in such a natural manner. Top stuff!

  • @johnedwards5687
    @johnedwards5687 4 หลายเดือนก่อน +5

    An amazingly clear explanation that shows how simple LINQ can be at least for beginners like me. I've watched other videos and none of them make a clear distinction between query syntax and method syntax.

  • @ADAM63639
    @ADAM63639 ปีที่แล้ว +13

    Microsoft be like:
    "How am I going to teach them about data structures without calling it a data structures leason...🤔"
    Yours teaching method is outstanding!

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

    This is learning and fun added together. Thanks for the great work.

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

    6:11 "You are not giving a f... formula!" 😂

  • @MPPBobDelaney
    @MPPBobDelaney 9 หลายเดือนก่อน

    After years away from writing code in a Windows app, I want to resurrect a 1990s-era Visual Basic desktop app and 'refactor' it in C#. These sessions show me that I can enjoy doing what I did back then in a much more efficient manner. I am also hoping to find sessions that demonstrate how to call Windows functions in the various DLLs that comprise Windows today, and save even more code writing.

    • @cyberchef8344
      @cyberchef8344 5 หลายเดือนก่อน

      This is straightforward in c#. Use System.Runtime.InteropServices. It should be noted that a good portion of the windows API already has .NET bindings, but it’s a good thing to understand nonetheless

  • @Michael-lo3ht
    @Michael-lo3ht 11 หลายเดือนก่อน +1

    I've used C and C++. This LINQ is new to me. But I've also done db queries. Does it matter if from/where/select are in that order? The reason I ask is it would look like a db query if it was select/from/where.

  • @risechess7114
    @risechess7114 ปีที่แล้ว +1

    2:16 i have the latest version of visual studio code and the sdk 8.0 but it give me error if i try to List scores = [... it says not available in c#11 plz use 12 or greater, even though i updated sdk to version 8.0 and restart my machine many times, how it is working with u and not working with me, because later it effect the sorting thing int[] scores .... doesnt have sort property. so when u upload lesson just make sure its available in the market, not just for u

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

      Is your project targeting .NET 8 as well?

    • @risechess7114
      @risechess7114 ปีที่แล้ว +1

      i dont have project am just following up with ur video step by step, thanks for ur replay@@davidfowl

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

      @@risechess7114 Find solution?

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

      no not yet@@DataScientist268

    • @mjishnu
      @mjishnu 11 หลายเดือนก่อน

      create a project like they told in the beginning lectures inside the project folder you can see a .csproj file in it set targetframework to 8 (net8.0) (btw this needs dotnet 8 to be installed to work)

  • @shalahe
    @shalahe 5 วันที่ผ่านมา

    Thanks!

  • @Michael-lo3ht
    @Michael-lo3ht 11 หลายเดือนก่อน +4

    Kind of off the subject. What kind of mouse is that?

    • @furkan3592
      @furkan3592 7 หลายเดือนก่อน +1

      A kind of ergonomic mouse.

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

    love these guys!

  • @marcusk7855
    @marcusk7855 5 หลายเดือนก่อน

    Is the IEnumerable a copy of the list or is it a list of links to the original data? Just wondering from a memory stand point and what happens if there are changes to the original list.

    • @cyberchef8344
      @cyberchef8344 5 หลายเดือนก่อน

      It’s an interface. It just specifies the required method names a data structure implementing that interface need. As a byproduct of that, LINQ will work with any implementation. Your question relates more to the individual data structure implementations

  • @janpoonthong
    @janpoonthong 5 หลายเดือนก่อน

    Great video, love it

  • @me4336
    @me4336 3 หลายเดือนก่อน

    it does not working List scores = [97, 92, 81, 60]; only work like
    List scores = new List { 97, 92, 81, 60 };

  • @spinningaround
    @spinningaround 11 หลายเดือนก่อน +1

    no functions

    • @sbubwoofer
      @sbubwoofer 6 หลายเดือนก่อน +1

      no functions? (ancient megamind meme)

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

    LINQ look like a resource consumer one

  • @BlackJar72
    @BlackJar72 3 หลายเดือนก่อน

    Why do they use the word "simpler" to mean "more complicated"?

  • @1conscience0dimension
    @1conscience0dimension หลายเดือนก่อน

    ah much better way to write lists (and arrays)

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

    Thank you for discouraging the use of var syntax. I disagree with this philosophy. I believe Microsoft should remove this token entirely