fork(1) download
  1. using System;
  2. using System.Reflection;
  3.  
  4. namespace Recetas.Cap03
  5. {
  6. internal class UsoGetData
  7. {
  8. public static string[] propiedadesIntegradas = {
  9. "APP_CONFIG_FILE", "APP_NAME", "APPBASE", "APP_CONFIG_BLOB",
  10. "BINPATH_PROBE_ONLY", "CACHE_BASE", "CODE_DOWNLOAD_DISABLED", "DEV_PATH",
  11. "DYNAMIC_BASE", "DISALLOW_APP", "DISALLOW_APP_REDIRECTS", "DISALLOW_APP_BASE_PROBING",
  12. "FORCE_CACHE_INSTALL", "LICENSE_FILE", "PRIVATE_BINPATH", "SHADOW_COPY_DIRS"
  13. };
  14.  
  15. public static void Main()
  16. {
  17. // Utilicemos el dominio de aplicación actual
  18. // para descubrir sus propiedades:
  19. AppDomain dominioAnfitrion = AppDomain.CurrentDomain;
  20.  
  21. Console.WriteLine("\nValores predeterminados de las propiedades del dominio anfitrión:");
  22. foreach (string propiedad in propiedadesIntegradas)
  23. {
  24. Console.WriteLine("\t`{0}` = {1}", propiedad, dominioAnfitrion.GetData(propiedad));
  25. }
  26. }
  27. }
  28. }
Success #stdin #stdout 0.03s 33904KB
stdin
Standard input is empty
stdout
Valores predeterminados de las propiedades del dominio anfitrión:
	`APP_CONFIG_FILE` = /home/QamvHu/prog.exe.config
	`APP_NAME` = 
	`APPBASE` = /home/QamvHu/
	`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` =