Learn how to randomly choose items from a collection that can loop forever.
Month: November 2021
Everything That Every .NET Developer Needs to Know About Disposable Types: Part 3 – Using Tools to Find Issues
This article series emphasizes the importance of understanding memory management and proper usage of the IDisposable interface in .NET code. Part 3 focuses on using various tools and Visual Studio extensions to identify and resolve memory and disposable-related issues in the codebase. While these tools can be helpful, manual analysis and adoption of memory profiler tools are also necessary to uncover all potential problems and improve the overall performance of .NET applications.
Internationalization and Localization Performance: Collection Count() & Any() with Predicate
In this article, I will show you how to properly use Any() or Count() with collections taking globalization into account. Updated February 2023.
Internationalization and Localization Performance: Comparing Strings
When comparing strings, it's important to use StringComparison. This article shows the performance of the different choices. Updated February 2023.
Internationalization and Localization Performance: String Validation with Equals()
When formatting strings it's important to use CurrentCulture when displaying strings to the user. This article shows the performance of the different choices. Updated February 2023.
Internationalization and Localization Performance: Formatting Strings
Taking globalization into account when displaying strings to the user means that they are properly formatted for their language and locale. This article shows the performance for string.Format(). Updated February 2023.
Serializing Objects Performance: XML Serialization
XML serialization has been around ever since .NET was released since it was so widely used back then. It’s still widely used, especially for legacy applications and services, even iTunes still uses XML to store library information. Benchmark results are for .NET 6 & 7.
Issues & Features Needed for Microsoft Office
I have been using Microsoft Office / 365 for all of my presentations, documents, spreadsheets, and more for decades. While I like it the best, there is a lot of room for improvement and like any software, it has issues. Below is my running list of these issues and features I think need to be … Continue reading Issues & Features Needed for Microsoft Office
General Performance: Expanded & Expression Bodied Methods
The post discusses the use of expression-bodied methods in .NET, contrasting them with traditional methods. While expression-bodied methods offer brevity, they are 1.4 times less performant. The author recommends prioritizing readability and maintainability over style, opting for expanded methods unless the expression-bodied version is significantly clearer.
Rockin’ The Code World with dotNetDave – Guest: Jeff Fritz
Join me live on Saturday, December 11th, 2021 at 11:30 PST on C# Corner Live for show #43 where I will be interviewing for the second time Jeff Fritz, Principal Program Manager - .NET Community.Â

You must be logged in to post a comment.