Home Sample Files Register Books Support Contact
Essential Skills Expert Skills
.NET 4.0 .NET 4.5

Learn ASP.NET 4.0, C# and Visual Studio 2010 Expert Skills

Lesson 5-2: Use the #if directive to selectively compile code

How to use the #if compiler directive to compile different code depending on the conditions set when building.

Play Video

Keywords: Use the #if directive to selectively compile code,DEBUG constant,System.Diagnostics namespace,compiler directives,#if directive

This course is also available as a printed book.
You can learn with either the book or video alone, but using the book and video together offers the best learning experience.