Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use TryGetValue() on dictionaries #1102

Merged
merged 1 commit into from
Mar 12, 2022
Merged

Use TryGetValue() on dictionaries #1102

merged 1 commit into from
Mar 12, 2022

Conversation

martincostello
Copy link
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