VB.NET 1.1 Tutorial - Comments


You can add comments to your code using the apostrophe (‘) character. Everything to the right of an apostrophe is ignored by the VB.NET compiler:

x = y + 5 ‘Add 5 to the value of y

VB.NET does not support multiline comments like some other languages.


What Next?

Return to the Tutorial Contents.