C# Класс 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.
Наследование: TrackedObject
Показать файл Открыть проект Примеры использования класса

Защищенные методы

Метод Описание
GetBindingFlags ( TrackClassAttribute attribute ) : BindingFlags

Приватные методы

Метод Описание
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

Описание методов

GetBindingFlags() защищенный статический Метод

protected static GetBindingFlags ( TrackClassAttribute attribute ) : BindingFlags
attribute TrackClassAttribute
Результат BindingFlags