Skip to content

Fix exception throw in TryGetValue #122

@uselessgoddess

Description

@uselessgoddess

if (array != null && array.Length > index)

If index < 0 then throwed IndexOutOfRangeException from Array.operator[]
Check index > 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions