Interlocked Members

The following tables list the members exposed by the Interlocked type.

Public Methods

Name Description
Public Method Static CompareExchange Compares two 32-bit signed integers for equality and, if they are equal, replaces one of the values.
Public Method Static Decrement Decrements the value of a specified variable and stores the result, as an atomic operation.
Public Method Equals (Inherited from Object.)
Public Method Static Exchange Sets a 32-bit signed integer to a specified value as an atomic operation, and then returns the original value.
Public Method GetHashCode (Inherited from Object.)
Public Method GetType (Inherited from Object.)
Public Method Static Increment Increments the value of a specified variable and stores the result, as an atomic operation.
Public Method ReferenceEquals (Inherited from Object.)
Public Method ToString (Inherited from Object.)

See Also

Reference

Interlocked Class
System.Threading Namespace