Swapping two elements.
Namespace:
DHI.Mike1D.Generic
Assembly:
DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax public static void Swap<T>(
ref T e1,
ref T e2
)
Public Shared Sub Swap(Of T) (
ByRef e1 As T,
ByRef e2 As T
)
public:
generic<typename T>
static void Swap(
T% e1,
T% e2
)
Parameters
- e1
- Type: T
first element - e2
- Type: T
second element
Type Parameters
- T
- Type of element to swap
See Also