NDepend

Improve your .NET code quality with NDepend

.NET Micro-Optimization and Refactoring Trick

Recently, I made an interesting observation regarding Dictionary<string,T>: the method TryGetValue() is faster when building  with new Dictionary<string,T>(StringComparer.Ordinal). This performance difference can be attributed to the fact that StringComparer.Ordinal performs...
Patrick Smacchia May 31, 2023