Skip to content

FelixKlakow/Jupiter.VMU

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jupiter.VMU

Provides methods to subscribe to specific INotifyPropertyChanged values. The helper uses weak references to avoid memory leaks but requires PropertyChanged to implement a weak event by itself if required.

Sample

public void Sample(SampleClass sample)
{
    sample.Subscribe(p => p.SampleIntProperty, HandleSampleIntChanged)
          .SubscribeUnsafe(p => p.SampleBoolProperty, v => Console.WriteLine($"Sample bool: {v}"));
}

private void HandleSampleIntChanged(int v)
{
    Console.WriteLine($"Sample int: {v}");
}

Author: Felix Klakow

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages