Skip to content

Conversation

@Numpsy
Copy link
Contributor

@Numpsy Numpsy commented Aug 14, 2024

Use Dictionary.TryGetValue rather than ContainsKey followed by an element access.

Refs
image

and https://learn.microsoft.com/en-gb/dotnet/fundamentals/code-analysis/quality-rules/ca1854

@danipen danipen merged commit 3c5fb57 into danipen:master Aug 25, 2024
@Numpsy Numpsy deleted the TryGetValue branch August 26, 2024 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants