November 2013
Beginner
824 pages
20h 59m
English
After completing this chapter, you will be able to:
Create and use a structure type.
Chapter 8 covers the two fundamental types that exist in Microsoft Visual C#: value types and reference types. Recall that a value type variable holds its value directly on the stack, whereas a reference type variable holds a reference to an object on the heap. Chapter 7 demonstrates how to create your own reference types by defining classes. In this chapter, you’ll learn how to create your own value types.
C# supports two kinds of value types: enumerations and structures. We’ll look at each ...
Read now
Unlock full access