This documentation is archived and is not being maintained.

Interlocked.Add Method

Adds two integers and replaces the first integer with the sum, as an atomic operation.

Name Description
Interlocked.Add (Int32, Int32) Adds two 32-bit integers and replaces the first integer with the sum, as an atomic operation.
Interlocked.Add (Int64, Int64) Adds two 64-bit integers and replaces the first integer with the sum, as an atomic operation.
Show: