Skip to content

M_CodeJam_Algorithms_Swap__1

Andrew Koryavchenko edited this page Jun 17, 2018 · 6 revisions

Algorithms.Swap(T) Method

Swaps two objects

Namespace: CodeJam
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0

Syntax

C#

public static void Swap<T>(
	ref T value1,
	ref T value2
)

VB

Public Shared Sub Swap(Of T) ( 
	ByRef value1 As T,
	ByRef value2 As T
)

F#

static member Swap : 
        value1 : 'T byref * 
        value2 : 'T byref -> unit 

Parameters

 

value1
Type: T
First value to swap.
value2
Type: T
Second value to swap.

Type Parameters

 

T
Type of values

See Also

Reference

Algorithms Class
CodeJam Namespace

Clone this wiki locally