Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C# 2005 > BOOK: Beginning Visual C# 2005
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 11th, 2006, 08:32 PM
Registered User
 
Join Date: Aug 2006
Location: Irving, TX, USA.
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...

Reply With Quote
  #2 (permalink)  
Old October 30th, 2006, 03:20 PM
Wrox Author
 
Join Date: Dec 2003
Location: Birmingham, , United Kingdom.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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:

animalCollection[0].Feed();

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.

Cheers,

Karli

----------
www.karliwatson.com
IT Specialist & Author
Technical Director, www.3form.net
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 04:26 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.