Replaces the entry for a key only if currently mapped to some value.
Namespace: Hazelcast.Core
Assembly: Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.8.2
Syntax
Parameters
Return Value
Type: TValueprevious value associated with key or null if there was no mapping for key .
Remarks
if (map.ContainsKey(key)) return map.put(key, value); else return null;
Warning:
This method uses GetHashCode and Equals of binary form of the key, not the actual implementations of GetHashCode and Equals defined in key's class.See Also