dotnet / dotnet/dotnet-api-docs
Example code in INotifyPropertyChanged API throws NullReferenceException
Open
area-System.ComponentModel
Pri3
untriaged
- Dominant language
- C#
- Stars
- 949
- Forks
- 1.7k
- Avg merge
- 3d 27m
- Merged PRs (30d)
- 49
Description
Hello, Team!
I searched if this has been reported, but I have not found any issue about this. Anyway I found that the example code in the following site is not working properly:
https://docs.microsoft.com/en-us/dotnet/api/system.componentmodel.inotifypropertychanged?view=netframework-4.8
If I create the project, and build it, then click on the Button, I get the following exception:
"System.NullReferenceException: 'Object reference not set to an instance of an object.'
customerList was null."

Contributor guide
Assessment
This issue has not been assessed yet.