Skip to content

Example code in INotifyPropertyChanged API throws NullReferenceException #6603

Open
@Omcsesz

Description

@Omcsesz

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."
ExampleCodeNotWorking

Metadata

Metadata

Assignees

No one assigned

    Labels

    Pri3Indicates issues/PRs that are low priorityarea-System.ComponentModeluntriagedNew issue has not been triaged by the area owner

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions