06 March 2019

c#basics Dictionary Hashmap hashcode Keyvaluepair

toop

We learned about Dictionary and Hashmaps and the hash algorithm usage to store and retrieve data. we used int, string and object types for both keys and values and explored the Dictionary API

hashm

More topics covered:

    • Hash collision
    • Object Hash code as key
    • Dictionary.TryGetValue
    • Dictionary[ key ]
    • Dictionary.Add
    • Dictionary.ContainsKey
    • foreach (KeyValuePair<type, type> item in dictionaryName) …
    • Disadvantage of using object as a key

Links:

Leave a comment

Design a site like this with WordPress.com
Get started