// Collection of code snippets by Arne Vajhøj // (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) using System; using NS1; namespace NS1 { public class C { public static void m() { Console.WriteLine("NS1.C"); } } } namespace NS2 { public class C { public static void m() { Console.WriteLine("NS2.C"); } } } namespace DefaultNamespace { class MainClass { public static void Main(string[] args) { // eksplicit NS1 NS1.C.m(); // eksplicit NS2 NS2.C.m(); // NS1 p.g.a. import C.m(); } } }