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

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 พ.ย. 2023
  • Learn what LINQ is, how to define a query expression, and how LINQ makes it easy to query any data source. In doing so, Scott and David explore declarative programming and deferred execution.
    C# for Beginners series playlist: aka.ms/dotnet/beginnervideos/...
    Learn more:
    .NET Beginner Videos: aka.ms/dotnetvideos
    Foundational C# Certification: aka.ms/csharp-certification
    MS Learn: aka.ms/dotnet/beginnervideos/...
    Blog: aka.ms/dotnet/blog
    Twitter: aka.ms/dotnet/twitter
    TikTok: aka.ms/dotnet/tiktok
    Mastodon: aka.ms/dotnet/mastodon
    LinkedIn: aka.ms/dotnet/linkedin
    Facebook: aka.ms/dotnet/facebook
    Docs: learn.microsoft.com/dotnet
    Forums: aka.ms/dotnet/forums
    🙋‍♀️Q&A: aka.ms/dotnet-qa
    👨‍🎓Microsoft Learn: aka.ms/learndotnet
    #dotnet #csharp
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @ADAM63639
    @ADAM63639 5 หลายเดือนก่อน +8

    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!

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

    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.

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

    2:19
    Concept
    8:50
    LINQ on T
    var nums = new List() { 1, 2, 3, 4, 5 };
    IEnumerable queries = from num in nums
    where num > 3
    select num;
    queries.ToList().ForEach(x => Console.WriteLine(x));

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

    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.

  • @SomeGuy-ul1np
    @SomeGuy-ul1np 22 วันที่ผ่านมา

    How to make 3 lines of code into 6 for convenience.
    Might have missed something here, but I didn't quite get the purpose of this.

  • @risechess7114
    @risechess7114 5 หลายเดือนก่อน +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 5 หลายเดือนก่อน

      Is your project targeting .NET 8 as well?

    • @risechess7114
      @risechess7114 5 หลายเดือนก่อน +1

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

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

      @@risechess7114 Find solution?

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

      no not yet@@DataScientist268

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

      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)

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

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

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

    no functions