Chapter 9: Value Types

Download CD Content


In this chapter, you will learn how to:

  • Distinguish between reference and value types

  • Work with structures

  • Work with enumerations

In Part 2, you learned about object-oriented programming and how to apply it within .NET. You’ve seen how many data types within .NET are represented by classes, and you’ve learned how to create and use your own classes. However, not every data type in .NET is a class, and now you’re going to meet the other fundamental building block of .NET types—the value type.

In this chapter, you’ll discover what value types are and how they differ from the reference types you’ve already met. You will also meet two important value types—structures and enumerations—that will be useful in your own code.

Microsoft Visual C++  .NET(c) Step by Step
Microsoft Visual C++ .NET(c) Step by Step
ISBN: 735615675
Year: 2003
Pages: 208 © 2008-2017.
If you may any questions please contact us: