I have some code like this:
public class EffectValues : IEnumerable { public object [ ] Values { get; set; } public IEnumerator
You have to cast the array to IEnumerable to be able to access the generic enumerator:
IEnumerable
public IEnumerator GetEnumerator() { return ((IEnumerable)this.Values).GetEnumerator(); }