IAtomicLongCompareAndSet Method Hazelcast .Net Client Class Library
Atomically sets the value to the given updated value only if the current value the expected value.

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

bool CompareAndSet(
	long expect,
	long update
)

Parameters

expect
Type: SystemInt64
the expected value
update
Type: SystemInt64
the new value

Return Value

Type: Boolean
true if successful; or false if the actual value was not equal to the expected value.
See Also

Reference