Wrox Programmer Forums
BOOK: Beginning Visual C# 2005
This is the forum to discuss the Wrox book Beginning Visual C# 2005 by Karli Watson, Christian Nagel, Jacob Hammer Pedersen, Jon D. Reid, Morgan Skinner, Eric White; ISBN: 9780764578472
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Visual C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old August 11th, 2006, 08:32 PM
Registered User
Join Date: Aug 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default About Chapter 11 Exercise 2

Ch11Ex02 Implementing an Animal Collection example works the same when I comment out the indexer code. So, what’s the use of the indexer. I don't get the point. Is this a bad example? Or am I not understanding something? I need an example where the indexer code gets hit when I step through the code...

Old October 30th, 2006, 03:20 PM
Wrox Author
Join Date: Dec 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts

Hi there,

Example Ch11Ex02 is a general example for defining a collection, and not just of implementing an indexed. However, the code for an indexer is included to illustrate how to add one. The code in the example does not make use of this indexer, but you can check that it's working in your code by adding the following line:


Without the indexer this code will not compile.

I hope that helps, and perhaps you are right that the example should include code that uses the indexer.



IT Specialist & Author
Technical Director, www.3form.net

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 5 Exercise 2 diango BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5 4 February 1st, 2011 03:24 PM
chapter 11 figure 11-7 relative positioning pelopito BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 2 November 29th, 2007 06:11 AM
Ch 11 Pg459 Exercise 5 C# brivad BOOK: Beginning ASP.NET 1.0 0 September 10th, 2007 08:59 AM
Chapter 11 Exercise - IE6 Margins discgolfer BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 4 January 23rd, 2006 01:05 PM
Chapter 3 Exercise 3 Matt WAXON BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 3 July 4th, 2005 02:19 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.