This is in C#, I have a class that I am using from some else\'s DLL. It does not implement IEnumerable but has 2 methods that pass back a IEnumerator. Is there a way I can u
Given class X with methods A and B that both return IEnumerable, you could use a foreach on the class like this:
foreach (object y in X.A()) { //... } // or foreach (object y in X.B()) { //... }
Presumably the meaning for the enumerables returned by A and B are well-defined.