Chapter 6. Variables

In this chapter:

  • What data types are and what the fundamental data types are

  • How strings are implemented in .NET

  • What program-defined data types are

  • How value and reference types differ

  • How a program can convert data from one type to another

  • How scope, accessibility, and lifetime affect what code can use a variable

TO MOST USERS, A PROGRAM IS a collection of buttons, labels, and text boxes stuck on a form. Behind the scenes, however, programs are all about data. Pieces of data hold the text displayed on the labels, the text entered by the user, the numeric values used to make calculations, and the size and positions of controls. Even the programs themselves are data at some level. If you open an executable program in an editor such ...

Get Start Here!™ Fundamentals of Microsoft® .NET Programming 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.