This project has moved and is read-only. For the latest updates, please go here.

INotifyPropertyChanged.TaskCompleted is null

Jan 28, 2015 at 12:21 AM
Firstly - thank you so much for your very useful library.

I am developing a WinRT app and using your NotifyTaskCompletion classes.
I note that the INotifyPropertyChanged.TaskCompleted property comment says:
"This property never changes and is never null"

However, when mocking up some data using Task.FromResult I have observed INotifyPropertyChanged.TaskCompleted set to null.

In the NotifyTaskCompletionImplementation ctor I see that the TaskCompleted property is only set if (!task.IsCompleted)

Is the comment wrong and should I check Execution.IsCompleted before awaiting Execution.TaskCompleted or is this a bug?

Regards Andy
Jan 29, 2015 at 2:03 PM