Parameter passing / referencing in .Net
Posted
Mon, Jul 17 2006 11:16 PM
by
Mischa Kroon
When looking at the following code: StringBuilder first = new StringBuilder();
StringBuilder second = first;
first.Append ("hello");
first = null;
Console.WriteLine (second);
|
What would you think the output would be ?
If it is anything other then: hello
You will want to look at the following tutorial:
Parameter passing in C#