Characters and strings are very important data types in practical programming. VB.NET provides a String type in the System namespace. As a class, String is a reference type. The VB.NET compiler provides additional support to make working with strings more concise and intuitive. In this section we will first look at characters and then outline the main features of the String class. We will look at string input, at the additional support provided by VB.NET, and at the issues of string equality. The section that follows surveys some of the useful methods of the String class. The section after that discusses the StringBuilder class.


VB.NET provides the primitive data type Char to represent individual characters. A character literal ...

Get Application Development Using Visual Basic® and .NET 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.