We've expanded our news coverage and improved our search! Visit
oreilly.com for the latest or search for all things across O'Reilly!
Article:
 |
|
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
|