C# Class Notify.PropertyChangedTrackedObject

Wraps INotifyPropertyChanged. Responsibility: Handle INotifyPropertyChanged.PropertyChanged and fire Changed. Create a TrackedObject for each eligible property (see IsEligibleProperty) and handle its Changed event. Keep track of these properties in _registeredProperties so that they can be cleaned up later. If an eligible property is assigned with a new object, create a TrackedObject for the new value and listen to its Changed event; at the same time, dispose old value in _registeredProperties so that it can be garbaged collected.
Inheritance: TrackedObject
Afficher le fichier Open project: buunguyen/notify Class Usage Examples

Méthodes protégées

Méthode Description
GetBindingFlags ( TrackClassAttribute attribute ) : BindingFlags

Private Methods

Méthode Description
GetClassAttribute ( object obj ) : TrackClassAttribute
IsEligibleProperty ( PropertyInfo property, TrackClassAttribute trackClassAttr ) : bool
OnPropertyChanged ( object sender, PropertyChangedEventArgs args ) : void
PropertyChangedTrackedObject ( object tracked ) : System.Collections.Generic
RegisterProperty ( object obj, PropertyInfo property ) : void
RegisterTrackedObject ( ) : void
RemoveProperty ( object propertyName ) : void
UnregisterTrackedObject ( ) : void

Method Details

GetBindingFlags() protected static méthode

protected static GetBindingFlags ( TrackClassAttribute attribute ) : BindingFlags
attribute TrackClassAttribute
Résultat BindingFlags