Chapter 12, Exercise 5 Answer
Hello,
I cannot get my head around the answer to Exercise 5 at the end of Chapter 12. When I use the code given in the answers document, i get the following error:
Error 1 'Ch11Task05_2.ShortCollection<T>' does not implement interface member 'System.Collections.IEnumerable.GetEnumerator()'. 'Ch11Task05_2.ShortCollection<T>.GetEnumerator()' cannot implement 'System.Collections.IEnumerable.GetEnumerator()' because it does not have the matching return type of 'System.Collections.IEnumerator'.
Any ideas?
Cheers,
NB
|