EnumVisitorGenerator 1.0.0

dotnet add package EnumVisitorGenerator --version 1.0.0
                    
NuGet\Install-Package EnumVisitorGenerator -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="EnumVisitorGenerator" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="EnumVisitorGenerator" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="EnumVisitorGenerator" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add EnumVisitorGenerator --version 1.0.0
                    
#r "nuget: EnumVisitorGenerator, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=EnumVisitorGenerator&version=1.0.0
                    
Install EnumVisitorGenerator as a Cake Addin
#tool nuget:?package=EnumVisitorGenerator&version=1.0.0
                    
Install EnumVisitorGenerator as a Cake Tool

If you mark an enum with the [VisitorGenerator] attribute, the source generator will generate several "Visitor" interfaces, where each method will correspond to an item of the target enum. Additionally, an extension class with methods will be generated where the target enum is switched and corresponding visitor interface methods are called.
     This helps to avoid error-prone direct switches.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • .NETStandard 2.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 253 12/18/2023