SourceGenerators.AutoNotify 1.2.3

dotnet add package SourceGenerators.AutoNotify --version 1.2.3
NuGet\Install-Package SourceGenerators.AutoNotify -Version 1.2.3
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="SourceGenerators.AutoNotify" Version="1.2.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SourceGenerators.AutoNotify --version 1.2.3
#r "nuget: SourceGenerators.AutoNotify, 1.2.3"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install SourceGenerators.AutoNotify as a Cake Addin
#addin nuget:?package=SourceGenerators.AutoNotify&version=1.2.3

// Install SourceGenerators.AutoNotify as a Cake Tool
#tool nuget:?package=SourceGenerators.AutoNotify&version=1.2.3

Source Generators

NuGet

AutoNotify

Original code from https://github.com/dotnet/roslyn-sdk/tree/main/samples/CSharp/SourceGenerators

Default attribute arguments

[AutoNotify(CheckEquality = EqualityCheck.None, GetterVisibility = Visibility.Public, SetterVisibility = Visibility.Public)]

Example

public partial class Filter
{
    [AutoNotify]
    private DateTime? _from;

    [AutoNotify]
    private DateTime? _to;
}

Source Generator output

public partial class Filter : INotifyPropertyChanged
{
    public event PropertyChangedEventHandler PropertyChanged;

    public DateTime? From 
    {
      get
      {
        return _from;
      }
      set
      {
        _from = value;
        PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(From)));
      }
    }
     
    public DateTime? To 
    {
      get
      {
        return _to;
      }
      set
      {
        _to = value;
        PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(To)));
      }
    }
}
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 (1)

Showing the top 1 popular GitHub repositories that depend on SourceGenerators.AutoNotify:

Repository Stars
enkodellc/blazorboilerplate
Blazor Boilerplate / Starter Template with MudBlazor
Version Downloads Last updated
1.2.3 2,896 2/26/2022
1.1.0 177 2/14/2022
1.0.0 2,852 8/20/2021