1 // Compiler options: -warnaserror
4 using System
.Reflection
;
6 public class Test
: MarshalByRefObject
8 public DateTime Stamp
= new DateTime (1968, 1, 2);
10 public static int Main ()
12 var setup
= new AppDomainSetup();
13 setup
.ApplicationBase
= System
.Environment
.CurrentDirectory
;
15 AppDomain d
= AppDomain
.CreateDomain ("foo", AppDomain
.CurrentDomain
.Evidence
, setup
);
17 Test t
= (Test
) d
.CreateInstanceAndUnwrap (Assembly
.GetExecutingAssembly().FullName
, typeof (Test
).FullName
);
18 t
.Stamp
= new DateTime (1968, 1, 3);
19 Console
.WriteLine (t
.Stamp
);