Conditional Compilation (Visual Basic)
In conditional compilation, particular blocks of code in a program are compiled selectively while others are ignored.
In This Section
Conditional Compilation Overview
Explains what conditional compilation is used for, and discusses the #Const and #If...Then...#Else directives.How to: Declare Conditional Compilation Constants
Shows how to declare conditional compilation constants in the Property Pages dialog box, at the command line, or in your code.How to: Collapse and Hide Sections of Code
Explains how to specify a block of code that you can expand or collapse using the Visual Studio outlining feature.
Related Sections
Program Structure and Code Conventions
Provides suggestions for making your code easy to read and maintain.Compiling to MSIL
Explains how your source code is translated into Microsoft intermediate language (MSIL) by the compiler.Compiling MSIL to Native Code
Provides an overview of the .NET Framework JIT (just-in-time) compiler that converts MSIL to native (CPU-specific) code.