About 14,700 results
Open links in new tab
  1. Mastering C# Generics: Advanced Topics and Best Practices

    Mar 23, 2023 · C# generics are a powerful feature of the language that allow you to write reusable and type-safe code. By understanding advanced topics like covariance and contravariance, …

  2. Generics in C#: Stop Writing Repetitive Code Already!

    Mar 26, 2025 · Generics let you define a class, method, or interface once — and use it for any type you want. It’s like writing code that shapeshifts depending on the situation.

  3. What’s New in C# 14: Complete Feature List and Deep Analysis for …

    Sep 22, 2025 · Explore every new feature in C# 14 with .NET 10 — from extension members to span conversions — and what they mean for production code.

  4. Reflection in C#: When and Why You Should (or Shouldn’t) Use It

    Mar 20, 2025 · Ever stumbled across System.Reflection in C# and thought, Wait, why would I ever need this? Or maybe you've heard someone mutter…

  5. nameof in C#: The Tiny Keyword That Solves Big Problems

    Apr 15, 2025 · nameof isn’t just for renaming — here’s how to wield its magic. nameof in C#: The Tiny Keyword That Solves Big Problems Explore clever ways to use C#’s nameof for UI, …

  6. C# Boxing: A Hidden Performance Enemy (Defeat It Now)

    Aug 25, 2025 · 🔸Use generics in methods as well: void Process<T>(T value) => Console.WriteLine(value); Process(42); // No boxing output Generics: your raw superpower for …

  7. Factory Method Pattern in .NET C#: Evolution and complete guide …

    Jul 7, 2025 · Learn the Factory Method Pattern in C# and .NET with a modern implementation, real-world examples, evolution, and best practices – updated for 2025.

  8. __arglist: The Risky C# Way to Break Argument Rules!

    Apr 14, 2025 · Dive into C#’s obscure __arglist keyword to handle variable-length arguments, and discover why its power comes with a warning label.

  9. You’re Still Writing C#/.NET Like It’s 2015 — Here’s the 2025 Way

    Oct 3, 2025 · If your C# still starts with namespaces at the top, MVC controllers everywhere, and new JsonSerializerOptions() sprinkled around, you’re writing code like it’s 2015. And if your …

  10. Structural Patterns in .NET C#: Composing objects for modern ...

    Jun 18, 2025 · Structural Design Patterns .NET C# The modern .NET ecosystem has introduced new paradigms that both complement and challenge traditional structural pattern …