<p>i have a few classes that i am trying to move to using generics</p>

<p>Class1: Curve</p>

<p>this class has the following code:</p>

<pre><code>public class Curve : IEnumerable

  IEnumerator IEnumerable.GetEnumerator()
    {
        return GetEnumerator(); // Calls non-interface method
    }

  public RTRatePointEnumerator GetEnumerator()
    {
        return new RTRatePointEnumerator(_hash);
    }
</code></pre>

<p>Class 2:</p>

<pre><code>  public class CurvePointEnumerator : IEnumerator
</code></pre>

<p>what is the recommended conversion of these two classes to using generics</p>

```
IEnumerable<T> and IEnumerator<T>
```
gah, it swallowed my code