O'Reilly logo

Applied Microsoft® .NET Framework Programming by Jeffrey Richter

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7. Type Members and Their Accessibility

In Part II, Part I focused on types and what operations are guaranteed to exist on all instances of any type. I also explained the different types that you can create: reference types and value types. In this chapter and the subsequent ones in this part, I’ll show how to design types using the different kinds of members that can be defined within a type. In Chapter 8 through Chapter 11, I’ll discuss the various members in detail.

Type Members

A type can define zero or more of the following members:

  • Constants (Chapter 8). A constant is a symbol that identifies a never-changing data value. These symbols are typically used to make code more readable and maintainable. Constants are always associated with ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required