/// <summary> /// Disposeによりアンマネージリソースを開放します。 /// </summary> protected virtual void OnDisposed() { if (Source != null) { Source.PropertyChanged -= OnPropertyChanged; } Source = null; }
public BindableBase(BindableBase source) { Source = source; if (Source != null) { Source.PropertyChanged += OnPropertyChanged; } }