NanoByte.CodeGeneration 0.3.0

Thin wrapper around Roslyn API to simplify generating C# code.

Install-Package NanoByte.CodeGeneration -Version 0.3.0
dotnet add package NanoByte.CodeGeneration --version 0.3.0
<PackageReference Include="NanoByte.CodeGeneration" Version="0.3.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NanoByte.CodeGeneration --version 0.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

A thin wrapper around the Roslyn API to simplify generating C# code. Allows you to generate a class like this:

var myClass = new CSharpClass(new CSharpIdentifier("MyNamespace", "MyClass"))
{
    Description = "My class",
    Properties =
    {
        new CSharpProperty(CSharpIdentifier.String, "MyProperty")
        {
            Description = "My property",
            HasSetter = true
        }
    }
};
myClass.WriteToFile("MyClass.cs");

Take a look at the documentation for more features, such as interfaces and attributes.

A thin wrapper around the Roslyn API to simplify generating C# code. Allows you to generate a class like this:

var myClass = new CSharpClass(new CSharpIdentifier("MyNamespace", "MyClass"))
{
    Description = "My class",
    Properties =
    {
        new CSharpProperty(CSharpIdentifier.String, "MyProperty")
        {
            Description = "My property",
            HasSetter = true
        }
    }
};
myClass.WriteToFile("MyClass.cs");

Take a look at the documentation for more features, such as interfaces and attributes.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
0.3.0 210 4/13/2020
0.2.3 148 4/3/2020
0.2.2 114 4/3/2020
0.2.1 159 4/3/2020
0.2.0 162 4/3/2020
0.1.1 140 4/2/2020
0.1.0 159 4/1/2020