cs1579.cs 241 B

12345678910111213
  1. // cs1579.cs: foreach statement cannot operate on variables of type X because X does not contain a definition for GetEnumerator or is not accessible
  2. // Line: 10
  3. class X {
  4. }
  5. class Y {
  6. void yy (X b)
  7. {
  8. foreach (object a in b)
  9. ;
  10. }
  11. }