Skip to content

Instantly share code, notes, and snippets.

@Fhernd
Created July 17, 2015 13:03
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/fe6723444557b1054c09 to your computer and use it in GitHub Desktop.
Save Fhernd/fe6723444557b1054c09 to your computer and use it in GitHub Desktop.
Demostración del uso de directivas de preprocesador en C#.
// OrtizOL - xCSw - http://ortizol.blogspot.com
#define DEPURAR
//#define RASTREAR
#undef RASTREAR
using System;
public class UsoDirectivas
{
public static void Main()
{
Console.WriteLine(Environment.NewLine);
#if (DEPURAR)
Console.WriteLine("La depuración está habilitada.");
#endif
#if (RASTREAR)
Console.WriteLine("El rastreo está habilitado.");
#endif
Console.WriteLine(Environment.NewLine);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment