diff --git a/xml/System.Threading/Interlocked.xml b/xml/System.Threading/Interlocked.xml index 0b5a99cdae5..d8b2f716576 100644 --- a/xml/System.Threading/Interlocked.xml +++ b/xml/System.Threading/Interlocked.xml @@ -1341,22 +1341,21 @@ If `comparand` and the object in `location1` are equal by reference, then `value - The type to be used for , , and . This type must be a reference type. + The type to be used for , , and . The destination, whose value is compared by reference with and possibly replaced. This is a reference parameter ( in C#, in Visual Basic). The value that replaces the destination value if the comparison by reference results in equality. The value that is compared by reference to the value at . - Compares two instances of the specified reference type for reference equality and, if they are equal, replaces the first one, as an atomic operation. + Compares two instances of the specified type for reference equality and, if they're equal, replaces the first one, as an atomic operation. The original value in . method for the value types , , , , and , but there is no support for other value types. +If `comparand` and the value in `location1` are equal by reference, then `value` is stored in `location1`. Otherwise, no operation is performed. The comparison and the exchange are performed as an atomic operation. The return value of this method is the original value in `location1`, whether or not the exchange takes place. > [!NOTE] -> This method overload is preferable to the method overload, because the latter requires the destination object to be accessed late-bound. +> This method overload is preferable to the method overload, because the latter requires the destination object to be accessed late-bound. ]]> @@ -2371,19 +2370,14 @@ If `comparand` and the object in `location1` are equal by reference, then `value - The type to be used for and . This type must be a reference type. + The type to be used for and . The variable to set to the specified value. This is a reference parameter ( in C#, in Visual Basic). The value to which the parameter is set. - Sets a variable of the specified type to a specified value and returns the original value, as an atomic operation. + Sets a variable of the specified type to a specified value and returns the original value, as an atomic operation. The original value of . method for the , , , , and value types, but there is no support for other value types. - -> [!NOTE] -> This method overload is preferable to the method overload, because the latter requires late-bound access to the destination object . +This method overload is preferable to the method overload, because the latter requires late-bound access to the destination object. ]]> The address of is a pointer.