C# Extension Methods: Add Functionality Without Inheritance or Wrappers

Discover how C# extension methods let you inject behavior into types you can’t change. Learn when to use them, see practical examples, and follow best practices for clean, maintainable code without inheritance or wrappers.

July 3, 2025 · 6 min · 1075 words · Abhinaw

Tuples vs Custom Types in C#: Clean Code or Lazy Hack?

Discover when to use tuples, record structs, or classes in C#. Learn the pros and cons for private methods, public APIs, and evolving code. See practical examples and a comparison table to make the best choice for clean, maintainable software.

July 2, 2025 · 6 min · 1156 words · Abhinaw