| MathHelperSwapT Method |
Swaps the content of two variables.
Namespace: DigitalRune.MathematicsAssembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax public static void Swap<T>(
ref T obj1,
ref T obj2
)
Public Shared Sub Swap(Of T) (
ByRef obj1 As T,
ByRef obj2 As T
)
public:
generic<typename T>
static void Swap(
T% obj1,
T% obj2
)
static member Swap :
obj1 : 'T byref *
obj2 : 'T byref -> unit
Parameters
- obj1
- Type: T
First variable. - obj2
- Type: T
Second variable.
Type Parameters
- T
- The type of the objects.
See Also