Aspects.Notify 1.0.1

This package provides simple INotifyPropertyChanged aspect. Put [Notify] attribure on your properties or a whole class. You can use [NotifyAlso] attributes to notify other dependant properties.
Powered by AspectInjector.

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

This package provides simple INotifyPropertyChanged aspect.
Put [Notify] attribure on your properties or a whole class. You can use [NotifyAlso] attributes to notify other dependant properties.

class TestClass
{
    [Notify]
    [NotifyAlso(nameof(FullName))]
    public string FirstName { get; set; }

    [Notify]
    [NotifyAlso(nameof(FullName))]
    public string LastName { get; set; }

    public string FullName => $"{FirstName} {LastName}";
}

public void Code()
{
    var target = new TestClass();
    target.LastName = "Yu"; // <-- will raise ```PropertyChanged``` for ```LastName``` and ```FullName```     
}

This package provides simple INotifyPropertyChanged aspect.
Put [Notify] attribure on your properties or a whole class. You can use [NotifyAlso] attributes to notify other dependant properties.

class TestClass
{
    [Notify]
    [NotifyAlso(nameof(FullName))]
    public string FirstName { get; set; }

    [Notify]
    [NotifyAlso(nameof(FullName))]
    public string LastName { get; set; }

    public string FullName => $"{FirstName} {LastName}";
}

public void Code()
{
    var target = new TestClass();
    target.LastName = "Yu"; // <-- will raise ```PropertyChanged``` for ```LastName``` and ```FullName```     
}

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.1 63 1/19/2020
1.0.0 67 1/19/2020