Skip to content

Instantly share code, notes, and snippets.

@Fhernd
Created May 21, 2014 00:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Fhernd/b52d8c459a5fdfdd4654 to your computer and use it in GitHub Desktop.
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#.
// ===++===
//
// 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