In This Topic
Swaps values of two variables.
Syntax
'Declaration
Public Shared Sub Swap(Of )( _
ByRef As , _
ByRef As _
)
'Usage
Dim a As
Dim b As
Utils.Swap(Of T)(a, b)
public static void Swap<>(
ref ,
ref
)
Parameters
- a
- The first variable.
- b
- The second variable.
Type Parameters
- T
- The type of variables.
See Also