linksplatform / linksplatform/Collections
Fix exception throw in TryGetValue
- Dominant language
- C#
- Stars
- 2
- Forks
- 7
- PR merge metrics
- No merged PRs in 30d
Description
https://github.com/linksplatform/Collections/blob/9fdbd272869ca4debb5da301e9e519ff1ccd51e9/csharp/Platform.Collections/Arrays/GenericArrayExtensions.cs#L47
If index < 0 then throwed `IndexOutOfRangeException` from Array.operator[]
Check `index > 0 `
Contributor guide
No contributing guide indexed for this repository
Research direction
Open csharp/Platform.Collections/Arrays/GenericArrayExtensions.cs at line 47 and inspect the TryGetValue index check alongside the referenced Array.operator[] behavior. Reproduce the negative-index case, then verify the bounds handling and existing test suite; done means invalid indices no longer produce the reported exception path unexpectedly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100