Utility.Swap<T> Method

Swaps two values.
Public Shared Sub Swap(Of  _ 
T)( _ 
ByRef first As T, _ 
ByRef second As T _ 
)
This language is not supported or no code example is available.
public static void Swap<T>( 
ref T first
ref T second 
)
This language is not supported or no code example is available.

Type Parameters

T

The type of values to swap

Parameters

first
T

First value

second
T

Second value

.NET Framework

Supported in: 4.8

In this article

Definition