""Last()" LINQ Method - Get the Last Item that Meets a Condition
Автор: Height Above Sea Level
Загружено: 2024-12-22
Просмотров: 552
Описание:
The "Last" LINQ extension method in C# gets the last item in a collection or the last item that meets a condition.
You can use an indexer with lists and arrays to get the last item, but this can't get you the last item that meets a condition directly.
A "LastOrDefault" method exists that returns a default value if no element is found.
LINQ extension methods are a group of methods in C# that make it easier to accomplish some outcomes by saving you from writing the entire logic yourself.
The performance of each method varies, so it's best to keep that in mind whenever you use LINQ methods.
☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁
Subscribe to the channel ✔️
/ @heightabovesealevel
Become a member to access exclusive perks.
/ @heightabovesealevel
CUSTOM SAKURA THEME for Visual Studio, exclusive content, and more on Patreon.
/ heightabovesealevel
Click the 🔔 to turn on notifications so you don't miss anything.
Come hang out on DISCORD!
Discord: / discord
Other awesome videos worth checking out:
C# for Beginners
• C# For Beginners
"First" LINQ Extension Method
• "First()" LINQ Method - Get the First Item...
A tip is always appreciated :)
https://streamelements.com/avatarvick...
☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁
Here's my other social media - amazing stuff over there too!
🎮 TWITCH ➼ / avatarvick
📷 INSTAGRAM ➼ / heightabovesealevel
😂 TWITTER ➼ / vicktor_oti (VICKTA)
☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁
🎵 Music provided by:
StreamBeats by Harris Heller
https://www.streambeats.com/
☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁
#csharp #LINQ #visualstudio
Thank you for watching.
Subscribe, and I'll see you in the next video.
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: