Tests/IMToolsTests.cs
/// <summary>Adds or updates the value by key in the map, always returning the modified map.</summary>
Adds or updates the value by key in the map, always returning the modified map.
Adds or updates the value by key in the map always returning the modified map .
[MethodImpl((MethodImplOptions)256)]
        public static ImHashMap234<K, V> AddOrUpdate<K, V>(this ImHashMap234<K, V> map, K key, V value)
        {
            var hash = key.GetHashCode();
            return map.AddOrUpdateEntry(hash, new ImHashMap234<K, V>.ValueEntry(hash, key, value));
        }
[ MethodImpl ( ( MethodImplOptions ) 256 ) ] public static ImHashMap234 < K , V > AddOrUpdate < K , V > ( this ImHashMap234 < K , V > map , K key , V value ) { var hash = key . GetHashCode ( ) ; return map . AddOrUpdateEntry ( hash , new ImHashMap234 < K , V > . ValueEntry ( hash , key , value ) ) ; }
Adds or updates the value by key in the map, always returning the modified map.
Adds or updates the value by key in the map always returning the modified map .
ImHashMap234<K, V>
this
key
K
value
V