Skip to content

NodeCollection.Add method imrovement #388

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

Merged
merged 2 commits into from
Apr 2, 2024
Merged

Conversation

alex-kulakov
Copy link
Contributor

Throws dedicated exception with information about duplicate, instead of general Dictionary counterpart.

Though try...catch is ugly here it is has almost no impact on valid scenarios, it is better that .ContainsKey on every operation for sure.

@alex-kulakov alex-kulakov merged commit bbd689a into 6.0 Apr 2, 2024
@alex-kulakov alex-kulakov deleted the 6.0-nodecollection-add-impr branch April 2, 2024 12:08
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.

1 participant