How to implement IEnumerator on this class so that I can use it in foreach loop.
public class Items { private Dictionary
You don't need to implement IEnumerable or any interface. In order to be able to use your class in a foreach, all that you need is to add an instance method to your class with the follwing signature:
IEnumerable
foreach
IEnumerator GetEnumerator()