There are several ways to sort a collection in .NET. Some of the sorting methods are part of LINQ. Let’s look at the methods that are part of the System.Collections.Generic namespace.
[New post] Collection Performance: Sorting Collections
|
Older messages
[New post] Collection Performance: Looping Over Other Collection Types
Friday, October 22, 2021
dotNetDave posted: " Subscriber Content I would guess that most code that is written defines a collection like this: var collection = new List<Person>(); Using List<> is perfectly fine
[New post] Collection Performance: Converting a List to Different Collection Types
Thursday, October 21, 2021
dotNetDave posted: "What if you already have a collection in memory, like after calling a service or database, and you need to return it as a different collection type? public Person[]
[New post] Collection Performance: Creating New Sorted Collection From a Collection
Wednesday, October 20, 2021
dotNetDave posted: " Subscriber Content Since LINQ was introduced in .NET 3.5, I have always used it to sort collections like this: var result = directories.OrderBy(p => p.LastWriteTime).ToList
[New post] Collection Performance: Creating New Immutable Collection From a Collection
Tuesday, October 19, 2021
dotNetDave posted: " Subscriber Content Immutable collections, which are collections that cannot be changed, was introduced in .NET 4.5 and are supported in .NET Core and beyond. There are
[New post] Collection Performance: Creating new collection From a collection Using AddRange()
Tuesday, October 19, 2021
dotNetDave posted: " Subscriber Content Its common in programming to create a collection from a collection. Usually there is some business logic applied to the items before they are put into the
You Might Also Like
📧 Implementing API Gateway Authentication With YARP
Saturday, May 4, 2024
Implementing API Gateway Authentication With YARP Read on: my website / Read time: 5 minutes BROUGHT TO YOU BY Supercharging Development With AI and APIs Announcing Postman v11: Streamline API
Software Testing Weekly - Issue 218
Friday, May 3, 2024
Unit, Integration and End-to-End Tests 🔧 View on the Web Archives ISSUE 218 May 4th 2024 COMMENT Welcome to the 218th issue! I loved going through this discussion among software engineers: What is your
gpt2-chatbot and OpenAI search engine - Weekly News Roundup - Issue #465
Friday, May 3, 2024
Plus: Med-Gemini; Vidu - Chinese answer to OpenAI's Sora; the first race of Abu Dhabi Autonomous Racing League; deepfaking celebrities to teach math and physics; and more! ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏
NASA comes to the rescue of crowded rocket launch sites
Friday, May 3, 2024
Plus: Fisker's legal woes and Sprinklr lays off 100 View this email online in your browser By Christine Hall Friday, May 3, 2024 Good afternoon, and welcome to TechCrunch PM. We made it to Friday,
🎮 Forget the PS5 Pro, I Still Love My PS4 — The Best Lock Screen Widgets for iPhone
Friday, May 3, 2024
Also: Smart Home Mistakes to Avoid, and More! How-To Geek Logo May 3, 2024 Did You Know Half of the world's geysers are located in Yellowstone National Park. 🔑 More Passkeys Happy Friday! You can
JSK Daily for May 3, 2024
Friday, May 3, 2024
JSK Daily for May 3, 2024 View this email in your browser A community curated daily e-mail of JavaScript news The Power of React's Virtual DOM: A Comprehensive Explanation Modern JavaScript
Musk raises $6B for AI startup
Friday, May 3, 2024
Also, is TikTok dodging Apple's commissions? View this email online in your browser By Haje Jan Kamps Friday, May 3, 2024 Welcome to Startups Weekly — Haje's weekly recap of everything you can
SWLW #597: Seek first to understand, The "Iterative Adjacent Possible", and more.
Friday, May 3, 2024
Weekly articles & videos about people, culture and leadership: everything you need to design the org that makes the product. A weekly newsletter by Oren Ellenbogen with the best content I found
iOS Dev Weekly - Issue 659
Friday, May 3, 2024
Is Swift 6 hitting one of the REAL hard problems? Not generics, not data race safety, but naming things! 😬 View on the Web Archives ISSUE 659 May 3rd 2024 Comment Naming things is one of the two hard
Daily Coding Problem: Problem #1430 [Easy]
Friday, May 3, 2024
Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Facebook. You have a large array with most of the elements as zero. Use a more space-