Spread Windows Forms 15.0
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet Namespace / Utils Class / Swap<T> Method
The type of variables.
The first variable.
The second variable.


In This Topic
    Swap<T> Method (Utils)
    In This Topic
    Swaps values of two variables.
    Syntax
    'Declaration
     
    
    Public Shared Sub Swap(Of T)( _
       ByRef a As T, _
       ByRef b As T _
    ) 
    'Usage
     
    
    Dim a As T
    Dim b As T
     
    Utils.Swap(Of T)(a, b)
    public static void Swap<T>( 
       ref T a,
       ref T b
    )

    Parameters

    a
    The first variable.
    b
    The second variable.

    Type Parameters

    T
    The type of variables.
    See Also