Understanding Value Types
Value types are data types that directly store data that they define. For example, a System.Int32 object represents a value type that can store an integer number as in the following line of code:
Dim anInteger As System.Int32 = 5
Among value types, the most common are numeric types that enable, for example, performing math operations or implementing counters or just storing a numeric value. Value types enable developers to choose the best data type according to the particular scenario. As we mentioned at the beginning of this chapter, value types are basically Structure objects. The .NET Framework provides several built-in value types that cover most needs in your development process, although you can create custom ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access