I am trying to use IEnumerator<T> in VB 2005. My class implements the IEnumerable<T> interface and I define a method GetEnumerator that returns a IEnumerator<T>.
The compiler is asking me to define a GetEnumerator method (the non generic version). But you cannot have two methods that that only differ by return type.
I think this is because the IEnumerable<T> interface implements the IEnumerable interface.
Also my GetEnumerator<T> method does a return mList.GetEnumerator() where mList is of type List<T>. Is there a yield command in VB 2005?