CommunityToolkit / CommunityToolkit/dotnet
OnPropertyChanged method raised "Value does not fall within the expected range"
- Lingua principale
- C#
- Stelle
- 3.8k
- Fork
- 400
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
### 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

### 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
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia riproducendo l’assegnazione a RootExplorerItem con CommunityToolkit.Mvvm 7.1.2 e analizza la chiamata a OnPropertyChanged coinvolta. Confronta il comportamento con la proprietà rinominata, quindi determina la condizione specifica che causa l’eccezione; il lavoro è completato quando l’assegnazione di LocalFileInfo non la genera più.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- csharp
- Ambito
- tooling
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 35/100