9 public string MyIdentity
{
11 return this.GetType().FullName
;
17 public class Second
: FirstInner
.First
{}
21 public class Third
: FirstOuter
.FirstInner
.First
{}
24 namespace FirstInner
// purposefully again
26 public class Fourth
: First
{} // must understand First in the nom qualified form
30 public class Fifth
: FirstOuter
.FirstInner
.First
{}
34 static int Main(string[] args
)
36 FirstOuter
.FirstInner
.First V1
= new FirstOuter
.FirstInner
.First();
37 FirstOuter
.Second V2
= new FirstOuter
.Second();
38 FirstOuter
.SecondInner
.Third V3
= new FirstOuter
.SecondInner
.Third();
39 FirstOuter
.FirstInner
.Fourth V4
= new FirstOuter
.FirstInner
.Fourth();
40 Fifth V5
= new Fifth();
42 Console
.WriteLine("V1 is " + V1
.MyIdentity
);
43 Console
.WriteLine("V2 is " + V2
.MyIdentity
);
44 Console
.WriteLine("V3 is " + V3
.MyIdentity
);
45 Console
.WriteLine("V4 is " + V4
.MyIdentity
);
46 Console
.WriteLine("V5 is " + V5
.MyIdentity
);