C# Generics: Collection Interfaces
Subject:   VB
Date:   2006-03-23 04:24:31
From:   JesseLiberty
Response to: VB

Yes, the interface was changed with the final release. The net effect is that the code fails with an error that you have not implemented the GetEnumerator() method. To work around this, you must implement a non-generic GetEnumerator to your class.

Since the signature is identical, you must implement it explicitly. Here is work around code:

IEnumerator IEnumerable.GetEnumerator()
throw new NotImplementedException();

Be sure to add using System.Collections;