Chapter 13. Properties and Indexers

In this chapter

Properties

Troubleshooting

Members containing executable statements are called function members. Function members are members of types. There are five categories of function members: constructors, methods, properties, indexers, and user-defined operators. Of these five, this chapter discusses properties and indexers. An indexer enables an object to be indexed just as it is done in an array. A property enables you to access the fields of a class.

Get Special Edition Using C# 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.