You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: xml/System.Threading/Interlocked.xml
+5-24Lines changed: 5 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -952,18 +952,10 @@
952
952
<remarks>
953
953
<formattype="text/markdown"><![CDATA[
954
954
955
-
## Remarks
956
-
Beginning with .NET Framework version 2.0, the <xref:System.Threading.Interlocked.Exchange%60%601%28%60%600%40%2C%60%600%29> method overload provides a type-safe alternative for reference types.
957
-
958
-
959
-
960
-
## Examples
961
-
The following code example shows the syntax for using `Exchange` with any reference type object.
> Beginning with .NET Framework version 2.0, the <xref:System.Threading.Interlocked.Exchange%60%601%28%60%600%40%2C%60%600%29> method overload provides a type-safe alternative for reference types.
967
959
]]></format>
968
960
</remarks>
969
961
<exceptioncref="T:System.ArgumentNullException">The address of <paramrefname="location1" /> is a null pointer.</exception>
@@ -1067,17 +1059,6 @@
1067
1059
1068
1060
> [!NOTE]
1069
1061
> This method overload is preferable to the <xref:System.Threading.Interlocked.Exchange%28System.Object%40%2CSystem.Object%29> method overload, because the latter requires late-bound access to the destination object .
1070
-
1071
-
1072
-
1073
-
## Examples
1074
-
The following example launches ten tasks, each of which generates 100 ten-character part numbers. It then the part number that is first alphabetically.
The example uses the `firstWidget` variable to store the ID that occurs first in the sort order. It compares each ID that it generates with the `firstWidget` value. If the new value precedes the current value of `firstWidget` in the sort order, the example calls the <xref:System.Threading.Interlocked.Exchange%2A> method to assign the new value to `firstWidget`.
1080
-
1081
1062
]]></format>
1082
1063
</remarks>
1083
1064
<exceptioncref="T:System.NullReferenceException">The address of <paramrefname="location1" /> is a null pointer.</exception>
0 commit comments