Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
Interlocked Class
Members FilterMembers Filter
Frameworks FilterFrameworks Filter
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
Interlocked..::.CompareExchange Method

Updated: November 2007

Compares two values for equality and, if they are equal, replaces one of the values.

  NameDescription
CompareExchange(Double%, Double, Double) Compares two double-precision floating point numbers for equality and, if they are equal, replaces one of the values.
CompareExchange(Int32%, Int32, Int32) Compares two 32-bit signed integers for equality and, if they are equal, replaces one of the values.
CompareExchange(Int64%, Int64, Int64) Compares two 64-bit signed integers for equality and, if they are equal, replaces one of the values.
CompareExchange(IntPtr%, IntPtr, IntPtr) Compares two platform-specific handles or pointers for equality and, if they are equal, replaces one of them.
CompareExchange(Object%, Object, Object) Compares two objects for reference equality and, if they are equal, replaces one of the objects.
CompareExchange(Single%, Single, Single) Compares two single-precision floating point numbers for equality and, if they are equal, replaces one of the values.
CompareExchange<(Of <(T>)>)(T%, T, T) Compares two instances of the specified reference type T for equality and, if they are equal, replaces one of them.
Top
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker