CommunityToolkit / CommunityToolkit/dotnet

OnPropertyChanged method raised "Value does not fall within the expected range"

Open
#166 0 comments 0 reactions 0 assignees View on GitHub
bug :bug:
Dominant language
C#
Stars
3.8k
Forks
400
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug

When I assign a value : this.RootExplorerItem = new LocalFileInfo()
OnPropertyChanged() raised an exception like below Image
BUT!!!
It is Strange that, when I change the name of Property "RootExplorerItem" the expcetion is gone, like rename to "RootExplorerItem1" or rename to "RootExplorer", No pattern yet discovered
Please check it, thanks

### Regression

_No response_

### Steps to reproduce

```text
When I assign a value : this.RootExplorerItem = new LocalFileInfo()
Value does not fall within the expected range. Exception is raised
```

### Expected behavior

no exception was raised

### Screenshots

![image](https://user-images.githubusercontent.com/11273359/159118799-9fc23332-72ab-42bf-b49e-71ddc1ae4880.png)

### IDE and version

VS 2022

### IDE version

_No response_

### Nuget packages

- [ ] CommunityToolkit.Common
- [ ] CommunityToolkit.Diagnostics
- [ ] CommunityToolkit.HighPerformance
- [x] CommunityToolkit.Mvvm (aka MVVM Toolkit)

### Nuget package version(s)

7.1.2

### Additional context

_No response_

### Help us help you

No, just wanted to report this

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.