Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Removed another bad Interlocked.Exchange example
  • Loading branch information
svick authored May 9, 2018
commit e09262521fcb375b6bac2a746dea3efb54d4cadc
10 changes: 0 additions & 10 deletions xml/System.Threading/Interlocked.xml
Original file line number Diff line number Diff line change
Expand Up @@ -954,16 +954,6 @@

## Remarks
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.



## Examples
The following code example shows the syntax for using `Exchange` with any reference type object.

[!code-cpp[System.Threading.Interlocked.Exchange#1](~/samples/snippets/cpp/VS_Snippets_CLR_System/system.Threading.Interlocked.Exchange/CPP/source.cpp#1)]
[!code-csharp[System.Threading.Interlocked.Exchange#1](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.Threading.Interlocked.Exchange/CS/source.cs#1)]
[!code-vb[System.Threading.Interlocked.Exchange#1](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Threading.Interlocked.Exchange/VB/source.vb#1)]

]]></format>
</remarks>
<exception cref="T:System.ArgumentNullException">The address of <paramref name="location1" /> is a null pointer.</exception>
Expand Down