<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>C-Sharp on ByteCrafted</title>
    <link>https://bytecrafted.dev/categories/c-sharp/</link>
    <description>Recent content in C-Sharp on ByteCrafted</description>
    <image>
      <title>ByteCrafted</title>
      <url>https://bytecrafted.dev/favicons/android-chrome-512x512.png</url>
      <link>https://bytecrafted.dev/favicons/android-chrome-512x512.png</link>
    </image>
    <generator>Hugo -- 0.155.2</generator>
    <language>en</language>
    <lastBuildDate>Tue, 25 Nov 2025 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://bytecrafted.dev/categories/c-sharp/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>The Clean Code Rules I Wish I Knew Sooner (Beyond SOLID)</title>
      <link>https://bytecrafted.dev/clean-code-csharp-beyond-solid/</link>
      <pubDate>Tue, 28 Oct 2025 00:00:00 +0000</pubDate>
      <guid>https://bytecrafted.dev/clean-code-csharp-beyond-solid/</guid>
      <description>Go beyond SOLID with a senior dev&amp;#39;s guide to clean C#. This post covers 22 principles like &amp;#34;Tell, Don&amp;#39;t Ask&amp;#34; and &amp;#34;Fail Fast&amp;#34; to help you write better C# code.</description>
    </item>
    <item>
      <title>Why I Avoid Static Helpers in Modern C# Projects</title>
      <link>https://bytecrafted.dev/avoid-static-helpers-csharp/</link>
      <pubDate>Tue, 30 Sep 2025 09:00:00 +0530</pubDate>
      <guid>https://bytecrafted.dev/avoid-static-helpers-csharp/</guid>
      <description>Static helper classes in C# look convenient, but they cause tight coupling, testing headaches, and global state issues. Here’s why I avoid them in modern .NET projects and what I do instead.</description>
    </item>
    <item>
      <title>12 SOLID Interview Questions for Experienced Developers</title>
      <link>https://bytecrafted.dev/solid-principles-interview-questions/</link>
      <pubDate>Mon, 08 Sep 2025 00:00:00 +0000</pubDate>
      <guid>https://bytecrafted.dev/solid-principles-interview-questions/</guid>
      <description>Boost your interview readiness with 12 essential SOLID principle questions for experienced developers focused on architecture and maintainable code.
</description>
    </item>
    <item>
      <title>Why Async Can Be Slower in Real Projects?</title>
      <link>https://bytecrafted.dev/csharp-async-await-scalability-vs-speed/</link>
      <pubDate>Fri, 01 Aug 2025 00:00:00 +0000</pubDate>
      <guid>https://bytecrafted.dev/csharp-async-await-scalability-vs-speed/</guid>
      <description>Think async is always better? In real C# projects, it can slow APIs, exhaust threads, and hurt scalability. Learn when to avoid it.</description>
    </item>
    <item>
      <title>Prefer Interfaces Over Abstract Classes in C#</title>
      <link>https://bytecrafted.dev/posts/c-sharp/prefer-interfaces-over-abstract-classes/</link>
      <pubDate>Wed, 16 Jul 2025 00:00:00 +0000</pubDate>
      <guid>https://bytecrafted.dev/posts/c-sharp/prefer-interfaces-over-abstract-classes/</guid>
      <description>Learn why preferring interfaces over abstract classes in C# improves code flexibility, testability, and maintainability for robust .NET applications.</description>
    </item>
    <item>
      <title>C# IEquatable: Custom Equality for .NET Devs</title>
      <link>https://bytecrafted.dev/posts/c-sharp/iequatable-guide/</link>
      <pubDate>Wed, 16 Jul 2025 00:00:00 +0530</pubDate>
      <guid>https://bytecrafted.dev/posts/c-sharp/iequatable-guide/</guid>
      <description>IEquatable in C#: Learn custom equality implementation to enhance .NET code quality, maintainability, and correctness in real-world projects.</description>
    </item>
    <item>
      <title>C# Polymorphism with Template, Strategy, Visitor</title>
      <link>https://bytecrafted.dev/posts/software-design/polymorphism-template-strategy-visitor/</link>
      <pubDate>Wed, 16 Jul 2025 00:00:00 +0530</pubDate>
      <guid>https://bytecrafted.dev/posts/software-design/polymorphism-template-strategy-visitor/</guid>
      <description>Learn how polymorphism in C# powers real-world patterns like Template Method, Strategy, and Visitor to write cleaner, extensible, and testable code.</description>
    </item>
    <item>
      <title>C# Interfaces: Default Methods for Compatibility</title>
      <link>https://bytecrafted.dev/posts/c-sharp/default-interface-methods/</link>
      <pubDate>Tue, 15 Jul 2025 00:00:00 +0000</pubDate>
      <guid>https://bytecrafted.dev/posts/c-sharp/default-interface-methods/</guid>
      <description>Learn C# default interface methods to build future-proof, backward-compatible APIs that are maintainable, flexible, and ready for modern applications.</description>
    </item>
    <item>
      <title>Encapsulation Best Practices in C#: Controlled Setters vs Backing Fields</title>
      <link>https://bytecrafted.dev/posts/c-sharp/encapsulation-best-practices/</link>
      <pubDate>Sat, 12 Jul 2025 00:00:00 +0530</pubDate>
      <guid>https://bytecrafted.dev/posts/c-sharp/encapsulation-best-practices/</guid>
      <description>Learn when to use auto-properties vs backing fields in C#. See best practices for encapsulation, validation, and business logic in property setters, with real-world code examples and a quick comparison table.</description>
    </item>
    <item>
      <title>Avoiding Boxing with Struct Dictionary Keys in C#: Performance and Best Practices</title>
      <link>https://bytecrafted.dev/posts/c-sharp/avoiding-boxing-struct-dictionary-keys/</link>
      <pubDate>Sun, 06 Jul 2025 00:00:00 +0000</pubDate>
      <guid>https://bytecrafted.dev/posts/c-sharp/avoiding-boxing-struct-dictionary-keys/</guid>
      <description>Learn how to avoid hidden heap allocations when using structs as dictionary keys in C#. See why boxing happens, how to implement IEquatable&amp;lt;T&amp;gt;, and the benefits of readonly and record structs for high-performance code.</description>
    </item>
    <item>
      <title>Guard Clauses in C#: Cleaner Validation and Fail-Fast Code</title>
      <link>https://bytecrafted.dev/posts/c-sharp/guard-clauses-csharp-clean-validation/</link>
      <pubDate>Sun, 06 Jul 2025 00:00:00 +0000</pubDate>
      <guid>https://bytecrafted.dev/posts/c-sharp/guard-clauses-csharp-clean-validation/</guid>
      <description>Learn how to use guard clauses in C# for cleaner validation and error handling. See practical examples, reusable helpers, and best practices for writing fail-fast, maintainable code.</description>
    </item>
    <item>
      <title>Efficient High-Volume File Processing in C#</title>
      <link>https://bytecrafted.dev/posts/c-sharp/efficient-parallel-file-processing-csharp/</link>
      <pubDate>Fri, 04 Jul 2025 00:00:00 +0030</pubDate>
      <guid>https://bytecrafted.dev/posts/c-sharp/efficient-parallel-file-processing-csharp/</guid>
      <description>Discover efficient C# patterns for processing large numbers of files, ensuring performance, reliability, and scalability in high-volume workloads.</description>
    </item>
    <item>
      <title>C#: Abstract Class or Interface? 10 Questions to Ask</title>
      <link>https://bytecrafted.dev/posts/c-sharp/interfaces-vs-abstract-questions/</link>
      <pubDate>Tue, 01 Jul 2025 10:10:00 +0530</pubDate>
      <guid>https://bytecrafted.dev/posts/c-sharp/interfaces-vs-abstract-questions/</guid>
      <description>10 real-world questions comparing abstract classes and interfaces in C#. Perfect for designing APIs, architectures, and preparing for interviews.</description>
    </item>
    <item>
      <title>C# 14&#39;s params for Collections: Say Goodbye to Arrays!</title>
      <link>https://bytecrafted.dev/posts/c-sharp/csharp-14-params-collections-performance-benefits/</link>
      <pubDate>Sat, 21 Jun 2025 02:30:20 +0530</pubDate>
      <guid>https://bytecrafted.dev/posts/c-sharp/csharp-14-params-collections-performance-benefits/</guid>
      <description>Discover how C# 14 extends the params keyword beyond arrays to support `IEnumerable&amp;lt;T&amp;gt;`, `Span&amp;lt;T&amp;gt;`, and other collections, bringing better performance, reduced memory allocations, and more flexible API design.</description>
    </item>
    <item>
      <title>5 Essential Benefits of Immutability in C# Programming</title>
      <link>https://bytecrafted.dev/posts/c-sharp/benefits-of-immutability-csharp/</link>
      <pubDate>Fri, 20 Jun 2025 02:30:20 +0530</pubDate>
      <guid>https://bytecrafted.dev/posts/c-sharp/benefits-of-immutability-csharp/</guid>
      <description>Discover why immutable objects are a powerful tool in C# development. Learn how immutability delivers thread safety, predictable behavior, better performance, and simplified debugging with practical code examples.</description>
    </item>
    <item>
      <title>C# Constructor Chaining - Why It Matters for Clean Code</title>
      <link>https://bytecrafted.dev/csharp-constructor-chaining-clean-code/</link>
      <pubDate>Fri, 20 Jun 2025 02:30:20 +0530</pubDate>
      <guid>https://bytecrafted.dev/csharp-constructor-chaining-clean-code/</guid>
      <description>Constructor chaining C# prevents code duplication. Learn when to use C# constructor overloading vs optional parameters with practical examples.</description>
    </item>
    <item>
      <title>C# Deadlock: 5 Proven Ways to Prevent and Debug Them</title>
      <link>https://bytecrafted.dev/csharp-deadlock-causes-prevention/</link>
      <pubDate>Fri, 20 Jun 2025 02:30:20 +0530</pubDate>
      <guid>https://bytecrafted.dev/csharp-deadlock-causes-prevention/</guid>
      <description>Struggling with a frozen C# application? A deadlock might be the cause. Learn 5 proven patterns to prevent, find, and fix deadlocks in your code today.</description>
    </item>
  </channel>
</rss>
