Commit 86aac58
committed
Validate negative startIndex in ObservableList.RemoveRange
Throw ArgumentOutOfRangeException before taking the lock, matching the
existing count guard, so callers get a deterministic exception instead
of an IndexOutOfRangeException from the per-item read at items[i] =
_list[startIndex + i].1 parent 1859014 commit 86aac58
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
| 171 | + | |
171 | 172 | | |
172 | 173 | | |
173 | 174 | | |
| |||
0 commit comments