Last active
January 15, 2016 19:29
-
-
Save miklund/ad5fd2479251eb9cb0ee to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Title: Conditional Compilation | |
# Author: Mikael Lundin | |
# Link: http://blog.mikaellundin.name/2009/02/27/conditional-compilation.html |
This file contains hidden or 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
#if Debug | |
Console.WriteLine("Hello"); | |
#else | |
Console.WriteLine("World"); | |
#endif |
This file contains hidden or 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
bool debug = false; | |
#if Debug // Enable stylesheet debug in development | |
debug = true; | |
#endif | |
XslCompiledTransform transformer = new XslCompiledTransform(debug); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment