I\'m trying to write my own (simple) implementation of List. This is what I did so far:
using System;
using System.Collections.Generic;
using System.Linq;
us
There are two overloads of GetEnumerator()
that you must implement. One comes from IEnumerable
and returns IEnumerator
. The other comes from IEnumerable and returns IEnumerator
. The override should look like this:
IEnumerator IEnumerable.GetEnumerator()
This is because IEnumerable
implements IEnumerable
.