Introducing ReflectionIT.DisposeGenerator — A Modern Source Generator for the Dispose Pattern
29-Apr-2026
Over the years I’ve implemented the Dispose pattern in C# more times than I can count. And if you’ve done the same, you know the drill: boilerplate, subtle rules, edge cases, async variants, thread‑safety, unmanaged resources, inheritance… and the constant risk of getting one tiny detail wrong.
So I decided to fix that.
Today I’m happy to introduce a new open‑source project: