次の方法で共有


Interlocked.CompareExchange Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Include Protected Members
Include Inherited Members

Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members

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

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 CompareExchange<T>(T%, T, T) Compares two instances of the specified reference type T for equality and, if they are equal, replaces one of them.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 CompareExchange(Int32%, Int32, Int32) Compares two 32-bit signed integers for equality and, if they are equal, replaces one of the values.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 CompareExchange(Int64%, Int64, Int64) Compares two 64-bit signed integers for equality and, if they are equal, replaces one of the values.
Public methodStatic memberSupported by Silverlight for Windows Phone CompareExchange(Object%, Object, Object) Compares two objects for reference equality and, if they are equal, replaces one of the objects.

Top