IMapTKey, TValueGet Method Hazelcast .Net Client Class Library
Returns the value for the specified key, or null if this map does not contain this key.

Namespace: Hazelcast.Core
Assembly: Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.7.1
Syntax

TValue Get(
	Object key
)

Parameters

key
Type: SystemObject
key

Return Value

Type: TValue
value
Remarks

Returns the value for the specified key, or null if this map does not contain this key.

Warning:

This method returns a clone of original value, modifying the returned value does not change the actual value in the map. One should put modified value back to make changes visible to all nodes.

var value = map.Get(key);
value.UpdateSomeProperty();
map.put(key, value);

Warning-2:

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

Reference