DEV Community

Szymon Hałucha
Szymon Hałucha

Posted on

Automatic interfaces generation in the C#

I created a simple package for the C# language to automatically generate an interfaces using incremental generators. Here's how to use it:

[Minerals.AutoInterfaces.GenerateInterface]
public class ExampleClass
{
    // Your implementation...
}
// or
[Minerals.AutoInterfaces.GenerateInterface("CustomInterfaceName")]
public class ExampleClass
{
    // Your implementation...
}
Enter fullscreen mode Exit fullscreen mode

GitHub: https://github.com/SzymonHalucha/Minerals.AutoInterfaces
NuGet: https://www.nuget.org/packages/Minerals.AutoInterfaces/

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay