What in this code could possibly trigger a compiler error complaining of
"member names cannot be the same as their enclosing type"
<FONT face="Courier New">class Item
{
public int this[int i]
{
get
{
return 0;
}
}
}</FONT>
This turned up during daily coding and we were stumped until we checked the MSDN page for this error code.
Seems to me this is what happens when syntactic sugar turns bad.....