Skip to content

Incorrect nullability of KObject and KValue indexer #124

@TheBoxyBear

Description

@TheBoxyBear

From the NuGet package:

When calling the key indexer of a KVObject or KVValue, VS Intellisense indicates that the indexer will return a non-null KVValue, even if nullability is nullable reference types are enabled at the file or project level.

This goes against the actual behavior of the indexer, which returns a null KVValue if the key is not present in the collection. It therefore leads to misunderstanding of the library behavior, both by the user and by code analysis which fails to detect null-unsafe usages of KVValue.

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