using System;
using System.Reflection;
namespace Recetas.Cap03
{
internal class UsoGetData
{
public static string[] propiedadesIntegradas = {
"APP_CONFIG_FILE", "APP_NAME", "APPBASE", "APP_CONFIG_BLOB",
"BINPATH_PROBE_ONLY", "CACHE_BASE", "CODE_DOWNLOAD_DISABLED", "DEV_PATH",
"DYNAMIC_BASE", "DISALLOW_APP", "DISALLOW_APP_REDIRECTS", "DISALLOW_APP_BASE_PROBING",
"FORCE_CACHE_INSTALL", "LICENSE_FILE", "PRIVATE_BINPATH", "SHADOW_COPY_DIRS"
};
public static void Main()
{
// Utilicemos el dominio de aplicaciĆ³n actual
// para descubrir sus propiedades:
AppDomain dominioAnfitrion = AppDomain.CurrentDomain;
Console.WriteLine("\nValores predeterminados de las propiedades del dominio anfitriĆ³n:");
foreach (string propiedad in propiedadesIntegradas)
{
Console.WriteLine("\t`{0}` = {1}", propiedad, dominioAnfitrion.GetData(propiedad));
}
}
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uUmVmbGVjdGlvbjsKCm5hbWVzcGFjZSBSZWNldGFzLkNhcDAzCnsKICAgIGludGVybmFsIGNsYXNzIFVzb0dldERhdGEKICAgIHsKICAgICAgICBwdWJsaWMgc3RhdGljIHN0cmluZ1tdIHByb3BpZWRhZGVzSW50ZWdyYWRhcyA9IHsKICAgICAgICAgICAgIkFQUF9DT05GSUdfRklMRSIsICJBUFBfTkFNRSIsICJBUFBCQVNFIiwgIkFQUF9DT05GSUdfQkxPQiIsIAogICAgICAgICAgICAiQklOUEFUSF9QUk9CRV9PTkxZIiwgIkNBQ0hFX0JBU0UiLCAiQ09ERV9ET1dOTE9BRF9ESVNBQkxFRCIsICJERVZfUEFUSCIsCiAgICAgICAgICAgICJEWU5BTUlDX0JBU0UiLCAiRElTQUxMT1dfQVBQIiwgIkRJU0FMTE9XX0FQUF9SRURJUkVDVFMiLCAiRElTQUxMT1dfQVBQX0JBU0VfUFJPQklORyIsCiAgICAgICAgICAgICJGT1JDRV9DQ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