Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: ee0bc0d176
Fetching contributors…

Cannot retrieve contributors at this time

36 lines (26 sloc) 0.778 kb
using System;
public class Gen<A,B,C> {}
public class main {
static object GenericFunc<A,B,C> () {
return new Gen<A,B,C> ();
}
static void DoGenericStuff () {
Console.WriteLine ("doing generic stuff");
GenericFunc<object,object,object> ();
}
static void DoOtherGenericStuff () {
Console.WriteLine ("doing other generic stuff");
GenericFunc<object,object,int> ();
}
public static void Main ()
{
// Create an Application Domain:
System.AppDomain newDomain = System.AppDomain.CreateDomain("NewApplicationDomain");
// Load and execute an assembly:
newDomain.ExecuteAssembly(@"generic-unloading-sub.2.exe");
DoGenericStuff ();
// Unload the application domain:
System.AppDomain.Unload(newDomain);
DoOtherGenericStuff ();
}
}
Jump to Line
Something went wrong with that request. Please try again.