Conditional Compilation

Element

Description

#Const directive

Declares a conditional compiler constant

#If...Then...End If directive

Defines a block of code that will only be compiled into the program if the expression with the conditional constant evaluates to True

Get VB.NET Language in a Nutshell, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.