?? class1.cs
字號:
using System;
namespace Wrox.ProCSharp.Assemblies.AppDomains
{
class Test
{
[STAThread]
static void Main(string[] args)
{
AppDomain currentDomain = AppDomain.CurrentDomain;
Console.WriteLine(currentDomain.FriendlyName);
AppDomain secondDomain = AppDomain.CreateDomain("New AppDomain");
// Comment out this next line for the 2nd Example
secondDomain.ExecuteAssembly("AssemblyA.exe");
// Uncomment the next block, and comment out the above line to run the 2nd Example
/*
secondDomain.CreateInstance("AssemblyA",
"Wrox.ProCSharp.Assemblies.AppDomains.Class1", true,
System.Reflection.BindingFlags.CreateInstance,
null, new object[] {7, 3}, null, null, null);
*/
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -