5 public static int Main() {
6 Environment
.ExitCode
= 2;
7 AppDomain domain
=AppDomain
.CreateDomain("Other");
8 Console
.WriteLine("About to execute");
9 domain
.ExecuteAssembly("main-exit.exe");
10 Console
.WriteLine("Execute returns");
11 AppDomain
.Unload(domain
);
12 Console
.WriteLine("finished");