Basic.Generators 0.1.0-dev

This is a prerelease version of Basic.Generators.
dotnet add package Basic.Generators --version 0.1.0-dev
                    
NuGet\Install-Package Basic.Generators -Version 0.1.0-dev
                    
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="Basic.Generators" Version="0.1.0-dev" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Basic.Generators" Version="0.1.0-dev" />
                    
Directory.Packages.props
<PackageReference Include="Basic.Generators" />
                    
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 Basic.Generators --version 0.1.0-dev
                    
#r "nuget: Basic.Generators, 0.1.0-dev"
                    
#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.
#:package Basic.Generators@0.1.0-dev
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Basic.Generators&version=0.1.0-dev&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Basic.Generators&version=0.1.0-dev&prerelease
                    
Install as a Cake Tool

basic-generators

Roslyn Source Generators and Analyzers

AutoEquality

This generator automatically adds equality to types annotated with [AutoEquality].

[AutoEquality]
partial class Person
{
    string FirstName;
    string LastName;
}

This will generate

partial class Person : IEquatable<Person?> 
{
    public static bool operator==(Person?, Person?);
    public static bool operator!=(Person?, Person?);
    public bool Equals(Person?);
    public override bool Equals(object?);
    public override int GetHashCode();
}
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

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
0.1.0-dev 82 11/27/2024