«^»
7.6. Methods

The following kinds of parameters are available:

Java C# VB.NET
value value ByVal
ref ByRef
out
params

private static void Swap(ref int x, ref int y)
{
    int temp = x;
    x = y;
    y = temp;
}
...
i = 42;
j = 27;
Swap(ref i, ref j);
// i has the value 27
// j has the value 42