Created
July 17, 2015 13:03
-
-
Save Fhernd/fe6723444557b1054c09 to your computer and use it in GitHub Desktop.
Demostración del uso de directivas de preprocesador 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 - 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