Skip to content

Adds an ability to explicitly specify tracked properties

License

Notifications You must be signed in to change notification settings

t-denis/PropertyChanged

 
 

Repository files navigation

This branch adds an ability to explicitly specify tracked properties. Because a code based on naming conventions only may become too fragile.

public class Person : INotifyPropertyChanged
{
    public string FirstName { get; set; }
    public string LastName { get; set; }

    [OnPropertyChanged(nameof(FirstName), nameof(LastName))]
    public void OnNameChanged()
    {
    }

    public event PropertyChangedEventHandler PropertyChanged;
}

This is an add-in for Fody

Icon

Injects INotifyPropertyChanged code into properties at compile time.

Introduction to Fody

More Info

About

Adds an ability to explicitly specify tracked properties

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 98.7%
  • PostScript 1.1%
  • F# 0.2%