Murach's C# 2005
How to work with indexers, delegates, events, and operators

Chapter 12 covers the skills that you need whenever you create a C# class. Now, this chapter shows you advanced techniques like how to create indexers, throw argument exceptions, define delegates, raise events, and overload operators.

Chapter 13 How to work with indexers, delegates, events, and operators
An introduction to the ProductList class 378
The code for a simple ProductList class 378
The specifications for the enhanced ProductList class 380
How to work with indexers 382
How to create an indexer 382
How to throw an argument exception 384
How to work with delegates and events 386
How to define and use a delegate 386
How to define and use events 388
How to overload operators 390
An introduction to operator overloading 390
How to overload arithmetic operators 392
How to overload comparison operators 394
An enhanced version of the Product Maintenance application 396
The code for the ProductList class 396
The code for the Product Maintenance form 400




Murach's C#

Learn more about this book

View the table of contents

Add this book to your cart



Our Ironclad Guarantee

First, try our books for 90 days. Then, if you aren't completely convinced that our books are the best ones you've ever used, you can return them for a full refund...no questions asked.