IAtomicLongGetAndSet Method Hazelcast .Net Client Class Library
Atomically sets the given value and returns the old value.

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

long GetAndSet(
	long newValue
)

Parameters

newValue
Type: SystemInt64
the new value

Return Value

Type: Int64
the old value
Remarks

Atomically sets the given value and returns the old value.
See Also

Reference