using System;
public class Program
{
class A
string name;
public A(string name)
this.name = name;
}
};
public static void Main()
var a = new A("Foo");
// 1. is object with name 'Foo" reacheable here?
var b = new A("Bar");
// 2. what objects of the set [Foo, Bar] are reacheable here?
a = b;
// 3. what objects of the set [Foo, Bar] are reacheable here?
b = null;
// 4. what objects of the set [Foo, Bar] are reacheable here?
a = null;