Skip to content

Use TryGetValue() on dictionaries#1102

Merged
normj merged 1 commit intoaws:devfrom
martincostello:Use-TryGetValue-Dict
Mar 12, 2022
Merged

Use TryGetValue() on dictionaries#1102
normj merged 1 commit intoaws:devfrom
martincostello:Use-TryGetValue-Dict

Conversation

@martincostello
Copy link
Copy Markdown
Contributor

Description of changes:

  • Use TryGetValue() with dictionaries, rather than ContainsKey() and the indexer ([]).
  • Also add CultureInfo.InvariantCulture on calls to int.Parse().

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Use TryGetValue() with dictionaries, rather than ContainsKey() and the indexer.
Also add CultureInfo.InvariantCulture on calls to int.Parse().
@normj normj changed the base branch from master to dev March 12, 2022 02:09
@normj normj merged commit 6b48748 into aws:dev Mar 12, 2022
@martincostello martincostello deleted the Use-TryGetValue-Dict branch March 12, 2022 08:24
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