You're implementing IEnumerable.GetEnumerator, but not IEnumerable<string>.GetEnumerator - the two methods are different, in that one returns IEnumerator, and the other returns IEnumerator<string>
To make your class compile, you need to implement both.
No comments:
Post a Comment