Skip to content

KeyNotFoundException not specified In Exceptions section in Dictionary<TKey,TValue>.IDictionary.Item[Object] Property #9683

@gejojimenez

Description

@gejojimenez

In the Exceptions section of Dictionary<TKey,TValue>.IDictionary.Item[Object] Property, for .Net Framework versions, there should be KeyNotFoundException, that is thrown when specified Key is not a key of the dictionary.
Reading these page, it looks like there won't be any Exception when retrieving a value from dictionary if specified Key does not exist

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions