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)