SourceGenerators.AutoNotify 1.3.0

dotnet add package SourceGenerators.AutoNotify --version 1.3.0                
NuGet\Install-Package SourceGenerators.AutoNotify -Version 1.3.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="SourceGenerators.AutoNotify" Version="1.3.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SourceGenerators.AutoNotify --version 1.3.0                
#r "nuget: SourceGenerators.AutoNotify, 1.3.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.
// Install SourceGenerators.AutoNotify as a Cake Addin
#addin nuget:?package=SourceGenerators.AutoNotify&version=1.3.0

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

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.3.0 2,354 1/18/2024
1.3.0-beta 186 1/17/2024
1.2.3 8,177 2/26/2022