AppDomain secondDomain = currentDomain.CreateDomain("New AppDomain");/
using System;using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace DomainTest
{
class Class1
{
static void Main(string[] args)
{
AppDomain currentDomain = AppDomain.CurrentDomain;
Console.WriteLine(currentDomain.FriendlyName);
AppDomain secondDomain = currentDomain.CreateDomain("New AppDomain");//问什么没有CreateDomain方法
secondDomain.ExecuteAssembly("AssemblyA.exe");
}
}
}