C# Reflection Anti-Patterns: 8 Mistakes That Will Hurt Your App
Avoid costly C# reflection anti-patterns -- learn 8 common mistakes developers make with reflection and the .NET 10 alternatives that perform better.
In-depth C# and .NET tutorials covering structured logging with Serilog, building Roslyn analyzers, NuGet packaging, and other core language and tooling topics.
Showing 91–96 of 264 articles
Avoid costly C# reflection anti-patterns -- learn 8 common mistakes developers make with reflection and the .NET 10 alternatives that perform better.
Master C# reflection in .NET 10 -- learn Type, PropertyInfo, MethodInfo, performance caching with FrozenDictionary, and when to avoid reflection entirely.
New LINQ methods in .NET 6-10: Chunk, DistinctBy, MinBy, CountBy, Index, LeftJoin and more -- every addition with before/after C# code examples.
Master LINQ element access in C# -- First, Last, Single, Chunk, and TryGetNonEnumeratedCount for safer, faster .NET 6+ collection queries.
Understand LINQ deferred execution in C# -- when queries actually run, multiple enumeration bugs, and when to materialize with ToList for correctness.
Learn LINQ joins in C# from inner joins to the new .NET 10 LeftJoin and RightJoin, with real-world Customer/Order examples and SQL comparisons.