IMapK, VGet 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: HazelcastClient3x (in HazelcastClient3x.dll) Version: 3.3.0.9
Syntax

V Get(
	Object key
)

Parameters

key
Type: SystemObject
key

Return Value

Type: V
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