For my work moving Spargine to .NET 6, I have completely rewritten the Spargine methods to validate method parameters. In this release, these methods have been changed to allow fluent validation.
Category: .NET Core
Everything That Every .NET Developer Needs to Know About Disposable Types: Using Tools to Find Issues
In part 1 of this series of this article, I talked about that it is very critical for every developer to know exactly how memory management works in the .NET runtime. In part 2 I showed how to implement the IDisposable interface for your types. In this article, I am going to discuss how to find these issues in your code by using tools and Visual Studio extensions.
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..
Internationalization and Localization Performance: Comparing Strings
When formatting strings its important to use CurrentCulture when displaying strings to the user. This article shows the performance of the different choices.
Internationalization and Localization Performance: String Validation with Equals()
When formatting strings its important to use CurrentCulture when displaying strings to the user. This article shows the performance of the different choices.
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().
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 5 & 6.
Reference Type & Structure 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.
Reference Type & Structure Performance: Normal vs Static Methods
Most of the code analysis tools, including tools from Microsoft, recommends creating static methods if possible, stating performance as one of the reasons. But are static methods more performant than normal non-static methods? This articles shows your which is more performant!
You must be logged in to post a comment.