Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
Interlocked Class
Exchange Method

  Switch on low bandwidth view
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..::.Exchange Method

Sets a variable to a specified value as an atomic operation.

  NameDescription
Public methodStatic memberExchange(Double%, Double)Sets a double-precision floating point number to a specified value and returns the original value, as an atomic operation.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkExchange(Int32%, Int32)Sets a 32-bit signed integer to a specified value and returns the original value, as an atomic operation.
Public methodStatic memberExchange(Int64%, Int64)Sets a 64-bit signed integer to a specified value and returns the original value, as an atomic operation.
Public methodStatic memberExchange(IntPtr%, IntPtr)Sets a platform-specific handle or pointer to a specified value and returns the original value, as an atomic operation.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkExchange(Object%, Object)Sets an object to a specified value and returns a reference to the original object, as an atomic operation.
Public methodStatic memberExchange(Single%, Single)Sets a single-precision floating point number to a specified value and returns the original value, as an atomic operation.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkExchange<(Of <(T>)>)(T%, T)Sets a variable of the specified type T to a specified value and returns the original value, as an atomic operation.
Top
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker