Skip to content

Conversation

@puniththota
Copy link
Collaborator

Dictionary extension to add to dictionary with only the value passed and a key generating function using the value

…and a key generating function using the value
Copy link
Owner

@ColmBhandal ColmBhandal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also add a function to AddWithValueDerivedFromKey - similar but you pass the key this time and a lambda to calculate the value

Copy link
Owner

@ColmBhandal ColmBhandal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use containsKey & indexer to assert dictionary expected pairs

@puniththota puniththota merged commit 33a113d into develop Oct 9, 2020
@puniththota puniththota deleted the DictionaryExtensionMethodToGetKeyFromValue branch October 9, 2020 14:26
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.

4 participants