IMapTKey, TValueReplace Method (TKey, TValue, TValue)Hazelcast .Net Client Class Library
Replaces the entry for a key only if currently mapped to a given value.

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

bool Replace(
	TKey key,
	TValue oldValue,
	TValue newValue
)

Parameters

key
Type: TKey
key
oldValue
Type: TValue
old value
newValue
Type: TValue
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