IMapK, VReplace Method (K, V, V)Hazelcast .Net Client Class Library
Replaces the entry for a key only if currently mapped to a given value.

Namespace: Hazelcast.Core
Assembly: HazelcastClient3x (in HazelcastClient3x.dll) Version: 3.3.0.12
Syntax

bool Replace(
	K key,
	V oldValue,
	V newValue
)

Parameters

key
Type: K
key
oldValue
Type: V
old value
newValue
Type: V
new value

Return Value

Type: Boolean
true if the value was replaced
Remarks

Replaces the entry for a key only if currently mapped to a given value.

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

Reference