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.

Performance: Expanded & Expression Bodied Methods

A newer way of creating simple methods in .NET is by using expression-bodied methods. This article shows which method is more performant.

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. 

String Performance: Encoding and Decoding Strings

Encoding and decoding strings to and from a byte[] is used a lot in programming. Performance results are for using the formatting options ASCII, Unicode, UTF8, and UTF32, Latin and BigEndianUnicode. Updated February 2023

Scott Hunter: Director of Program Management, .NET

Rockin’ The Code World with dotNetDave – Guest: Scott Hunter

Join me live on Saturday, November 13th, 2021 at 10:00 PST on C# Corner Live for show #42 where I will be interviewing for the second time Scott Hunter, Director Program Management .NET.  Learn the latest about .NET 6 from the person in charge of it! 

String Performance: Combining Strings with the StringBuilder

In programming, efficient string concatenation is crucial. Utilizing the StringBuilder class, especially within loops, offers better performance and reduced memory usage. Methods like AppendFormat() and AppendLine() provide formatting and localization benefits. Benchmark results show StringBuilder's significant speed advantage, with minimal memory allocations. Consistently using StringBuilder for string concatenation is recommended.