3.4. Summary

The discussion in this chapter concentrated on the various value types of data that you can use in your C# programs. More specifically, I emphasized the numeric data types you can use. Any time you wish to manipulate data in a mathematical way, you will likely use one of the numeric data types discussed in this chapter. I also included the bool data type in this chapter because it is a value type, although it is not often manipulated in a mathematical sense. (I excluded the char value type from this chapter even though it is a value type. Because its use is associated with textual data, I have postponed discussing it until Chapter 6.)

You should now be comfortable discussing the following:

  • Integer data types

  • Floating-point data types

  • The bool data type

  • Factors to consider when selecting a data type for a given task

  • The purpose of Intellisense

In the next chapter you will expand on your understanding of the basic value types and how they are used in a program. Make sure you understand what the different value types are and how they may be used in a program before advancing to Chapter 4.

Get Beginning C# 3.0 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.