CSharp examples for Custom Type:Method Parameter
In the following example, the variables x and y represent the same instance:
using System;//from ww w . ja v a 2s.c om class Test { static int x; static void Main() { Foo (out x); } static void Foo (out int y) { Console.WriteLine (x); // x is 0 y = 1; // Mutate y Console.WriteLine (x); // x is 1 } }