Ad space (banner)
๐Ÿ”ทVB.NET Lessons
Lesson 13 / 68

Using the standard library

This lesson covers the conveniences in VB.NET's standard library, with the aim of knowing what you do not have to write yourself.

VB.NET ships a rich standard library, from string operations to List(Of T). Looking there before writing something yourself is the first step towards efficient development.

The sample code converts to upper case with "hello".ToUpper(), zero-pads with "7".PadLeft(3, "0"c), and handles a variable-length list with List(Of Integer). Note list.Count, which gives the number of elements.

A common early stumble is not knowing what is available and writing the same thing out at length yourself. Getting into the habit of searching the documentation, or the method names, greatly raises your throughput.

In professional work, how well you know the standard library directly affects both code quality and development speed. Avoiding reinvention and reaching for reliable standard features is the recommendation.

๐Ÿ“– Reference code
โœ๏ธ Your code
Type your code, then press "Run"

๐Ÿงช This site can't compile or run VB.NET directly, so it checks on the spot whether what you typed matches the reference code (scoring happens entirely in your browser โ€” nothing is sent anywhere).

Ad space (banner)
Ad space (in-article)