This documentation is archived and is not being maintained.
.NET Framework 2.0
Provides atomic operations for variables that are shared by multiple threads.
The following tables list the members exposed by the Interlocked type.
|Add||Overloaded. Adds two integers and replaces the first integer with the sum, as an atomic operation.|
|CompareExchange||Overloaded. Compares two values for equality and, if they are equal, replaces one of the values.|
|Decrement||Overloaded. Decrements a specified variable and stores the result, as an atomic operation.|
|Equals||Overloaded. Determines whether two Object instances are equal. (Inherited from Object.)|
|Exchange||Overloaded. Sets a variable to a specified value as an atomic operation.|
|GetHashCode||Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|Increment||Overloaded. Increments a specified variable and stores the result, as an atomic operation.|
|Read||Returns a 64-bit value, loaded as an atomic operation.|
|ReferenceEquals||Determines whether the specified Object instances are the same instance. (Inherited from Object.)|
|ToString||Returns a String that represents the current Object. (Inherited from Object.)|