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

Ғылым және технология

View full playlist: aka.ms/dotnet/beginnervideos/...
Set up C# in VS Code: aka.ms/dotnet/get-started/vscode
🏆Earn the C# Certification: aka.ms/csharp-certification
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.
Links:
.NET Beginner Videos: aka.ms/dotnetvideos
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

Пікірлер: 21

  • @ADAM63639
    @ADAM636398 ай бұрын

    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!

  • @janpoonthong
    @janpoonthongКүн бұрын

    Great video, love it

  • @sbubwoofer
    @sbubwoofer24 күн бұрын

    love these guys!

  • @MPPBobDelaney
    @MPPBobDelaney4 ай бұрын

    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
    @kvelez8 ай бұрын

    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));

  • @jessedv5915

    @jessedv5915

    2 ай бұрын

    for the 1st part you can just write// List nums =[1, 2, 3, 4, 5]; ........................................................//IEnumerable numQuery

  • @Michael-lo3ht
    @Michael-lo3ht6 ай бұрын

    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
    @risechess71148 ай бұрын

    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

    8 ай бұрын

    Is your project targeting .NET 8 as well?

  • @risechess7114

    @risechess7114

    7 ай бұрын

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

  • @DataScientist268

    @DataScientist268

    7 ай бұрын

    @@risechess7114 Find solution?

  • @risechess7114

    @risechess7114

    7 ай бұрын

    no not yet@@DataScientist268

  • @mjishnu

    @mjishnu

    5 ай бұрын

    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-lo3ht6 ай бұрын

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

  • @furkan3592

    @furkan3592

    Ай бұрын

    A kind of ergonomic mouse.

  • @SillyGuy-ul1np
    @SillyGuy-ul1np3 ай бұрын

    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.

  • @jessedv5915

    @jessedv5915

    2 ай бұрын

    the purpose of Linq is so that you write your query in c# and the ide will help you out

  • @jessedv5915

    @jessedv5915

    2 ай бұрын

    You could also put everything after IEnumerable til the ; in one line...

  • @spinningaround
    @spinningaround5 ай бұрын

    no functions

  • @sbubwoofer

    @sbubwoofer

    24 күн бұрын

    no functions? (ancient megamind meme)

Келесі