O'Reilly logo

Pro C# 2008 and the .NET 3.5 Platform, Fourth Edition by Andrew Troelsen

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 12. Indexers, Operators, and Pointers

In this chapter, you'll deepen your understanding of the C# programming language by examining a handful of advanced syntactic constructs. To begin, you'll learn how to construct and use an indexer method. This C# mechanism enables you to build custom types that provide access to internal subtypes using an array-like syntax. Once you learn how to build an indexer method, you'll then examine how to overload various operators (+, -, <, >, and so forth), and how to create custom explicit and implicit conversion routines for your types (and you'll learn why you may wish to do so).

The remainder of this chapter examines a small set of lesser used (but nonetheless interesting) C# keywords. For example, you'll ...

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