ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.


AddThis Social Bookmark Button
  New Language Features in C# 2.0, Part 1
Subject:   Failing example code
Date:   2004-04-06 04:00:28
From:   mcavigelli
I guess the first code example in the iterator section will not compile:

foreach (item OrderItem in catalog)
// (Process OrderItem here.)

It must be rather

foreach (OrderItem item in catalog)
// (Process OrderItem here.)

Matthias Cavigelli