Home Archive Issue #590
Issue #590

C# error handling, pinning tests and dump analysis

Coverage includes xUnit behavior checks, memory-leak and deadlock investigations, Excel slicers, union-type discussion, and a string-counting exercise.

Jasen's top three picks

  1. 1
    C# try/catch: Exception Handling in C# with Examples

    Khalid Abuhakmeh

    A practical tour of try/catch, finally, exception filters, and custom exceptions.

  2. 2
    Pinning Tests: Making Unfamiliar C# Code Safe to Change

    C# Corner

    Capture current behavior with xUnit before changing code you don’t yet fully understand.

  3. 3
    Finding a memory leak in a .NET dump with an AI agent

    Meziantou's blog

    A useful diagnostic sequence: inspect the heap, find retention paths, then check for growth.

Editor's note

I’ve kept this issue varied, from everyday C# techniques to production diagnostics. The pinning-tests article offers a practical way to protect unfamiliar behavior before refactoring. I also appreciate the memory-leak investigation’s reminder to establish whether retained objects are actually growing.

Today's articles

Related issues

📬 Save the search. Get the .NET stories worth reading at 7 AM ET.