Created
May 21, 2014 00:16
-
-
Save Fhernd/b52d8c459a5fdfdd4654 to your computer and use it in GitHub Desktop.
Demostrar el proceso de creación de un dominio de aplicación (AppDomain) en C#.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ===++=== | |
// | |
// OrtizOL | |
// | |
// ===--=== | |
/*============================================================ | |
// | |
// Clase: CreacionAppDomain.cs | |
// | |
// Propósito: Demostrar el proceso de creación de un | |
// dominio de aplicación (AppDomain) en C#. | |
// | |
============================================================*/ | |
using System; | |
using System.Reflection; | |
namespace Recetas.Cap03 | |
{ | |
internal class CreacionAppDomain | |
{ | |
public static void Main() | |
{ | |
Console.WriteLine("\nCreando un nuevo AppDomain:"); | |
AppDomain dominio = AppDomain.CreateDomain("NuevoDominio"); | |
Console.WriteLine("Dominio anfitrión: {0}", AppDomain.CurrentDomain.FriendlyName.ToString()); | |
Console.WriteLine("Dominio huésped: {0}\n", dominio.FriendlyName.ToString()); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment