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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.