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 - วิทยาศาสตร์และเทคโนโลยี
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!
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.
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));
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.
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.
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
Is your project targeting .NET 8 as well?
i dont have project am just following up with ur video step by step, thanks for ur replay@@davidfowl
@@risechess7114 Find solution?
no not yet@@DataScientist268
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)
Kind of off the subject. What kind of mouse is that?
no functions