标题:AppDomain secondDomain = currentDomain.CreateDomain("New AppDomain");/ ...
取消只看楼主
yxhrgyj
Rank: 1
等 级:新手上路
帖 子:22
专家分:0
注 册:2012-2-5
结帖率:100%
已结贴  问题点数:4 回复次数:0 
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");
        }
    }
}
搜索更多相关主题的帖子: class void 
2012-03-16 15:31



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-363382-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.685355 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved