Skip to content

Commit 569f361

Browse files
OnPropertyChanged is now virtual so it can be overriden if needed
1 parent 2bbcfc4 commit 569f361

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ThunderDesign.Net-PCL.Threading/Collections/ObservableCollectionThreadSafe.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ public void Move(int oldIndex, int newIndex)
164164
OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, removedItem, index));
165165
}
166166

167-
public void OnPropertyChanged(string propertyName)
167+
public virtual void OnPropertyChanged(string propertyName)
168168
{
169169
this.NotifyPropertyChanged(PropertyChanged, propertyName, WaitOnNotifyPropertyChanged);
170170
}

src/ThunderDesign.Net-PCL.Threading/Collections/ObservableDictionaryThreadSafe.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public bool WaitOnNotifyCollectionChanged
133133
return result;
134134
}
135135

136-
public void OnPropertyChanged(string propertyName)
136+
public virtual void OnPropertyChanged(string propertyName)
137137
{
138138
this.NotifyPropertyChanged(PropertyChanged, propertyName, WaitOnNotifyPropertyChanged);
139139
}

0 commit comments

Comments
 (0)