2 using System
.Reflection
;
7 Assembly a
= AppDomain
.CurrentDomain
.Load ("mscorlib");
8 object o
= a
.CreateInstance ("System.Exception");
11 if (!(o
is System
.Exception
))
13 object[] args
= new object [2];
16 o
= Activator
.CreateInstance (typeof (System
.String
), args
);
19 if (!(o
is System
.String
))
21 if (!"XXXXXXXXXX".Equals (o
)) {
22 Console
.WriteLine ("got: {0}", o
);