Previous Page
Next Page

Chapter 15
Using Indexers
After completing this chapter, you will be able to:

The previous chapter described how to use and implement properties as a means of providing controlled access to the fields in a class. Properties are useful for mirroring fields that contain a single value. However, indexers are invaluable if you want to provide access to items that contain multiple values, by using a natural and familiar syntax.


Previous Page
Next Page