i have a few classes that i am trying to move to using generics
Class1: Curve
this class has the following code:
public class Curve : IEnumerable
IEnumerator IEnumerable.GetEnumerator()
{
return GetEnumerator(); // Calls non-interface method
}
public RTRatePointEnumerator GetEnumerator()
{
return new RTRatePointEnumerator(_hash);
}
Class 2:
public class CurvePointEnumerator : IEnumerator
what is the recommended conversion of these two classes to using generics