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

2023 ж. 9 Қар.
14 518 Рет қаралды

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

Пікірлер
  • 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!

    @ADAM63639@ADAM636395 ай бұрын
  • 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.

    @MPPBobDelaney@MPPBobDelaneyАй бұрын
  • 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));

    @kvelez@kvelez5 ай бұрын
  • 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.

    @Michael-lo3ht@Michael-lo3ht3 ай бұрын
  • 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.

    @SomeGuy-ul1np@SomeGuy-ul1np23 күн бұрын
  • 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

    @risechess7114@risechess71145 ай бұрын
    • Is your project targeting .NET 8 as well?

      @davidfowl@davidfowl5 ай бұрын
    • i dont have project am just following up with ur video step by step, thanks for ur replay@@davidfowl

      @risechess7114@risechess71145 ай бұрын
    • @@risechess7114 Find solution?

      @DataScientist268@DataScientist2685 ай бұрын
    • no not yet@@DataScientist268

      @risechess7114@risechess71145 ай бұрын
    • 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)

      @mjishnu@mjishnu2 ай бұрын
  • Kind of off the subject. What kind of mouse is that?

    @Michael-lo3ht@Michael-lo3ht3 ай бұрын
  • no functions

    @spinningaround@spinningaround2 ай бұрын
KZhead