Skip to content

Source Generator Generating the Dispose functions in Disposables.

License

Notifications You must be signed in to change notification settings

Elskom/IDisposableGenerator

Repository files navigation

IDisposableGenerator

Source Generator Generating the Dispose functions in Disposables.

Code Ownership

All code used is copyright of Elskom org, with the exception of Roslyn which is copyright of the .NET Foundation and it's contributors.

The dependencies of the unit tests are copyright of their respective owners.

Status

This project is currently actively maintained whenever an issue happens (or whenever major roslyn changes happens that break it).

Purpose

This project is for easily generating the dispose functions of disposable types using attributes to control the generator on how it writes the generated code. This results in code that is more maintainable and cleaner than if you had to implement the IDisposable interface yourself. Disposable types require marking the type as partial to properly compile the generated code.

Documentation

It is currently in the works.

Badges

Codacy Badge Codacy Coverage Badge

Package Version
IDisposableGenerator NuGet Badge