I have a class that map objects to objects, but unlike dictionary it maps them both ways. I am now trying to implement a custom IEnumerator interface that iterates through t
Just implement the IEnumerable interface, no need to implement the IEnumerator unless you want to do some special things in the enumerator, which for your case doesn't seem to be needed.
public class Mapper : IEnumerable {
public IEnumerator GetEnumerator()
{
return KToTMap.Values.GetEnumerator();
}
}
and that's it.