-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- When removing entries, ensure the dictionary entry is removed is the list is emptied, to prevent incorrect lookups later. - Prevent NRE when calling GetOrDefault<T> where T is a value type and the default is returned. - Use a single dictionary for simplicity and improved lookup performance (since there is only one dictionary to check). - De-duplicate code in Get and GetOrDefault.
- Loading branch information
1 parent
5056e7b
commit 5c5cbb3
Showing
1 changed file
with
26 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters