class Numbers implements IEnumerable var _numbers = List() cue init(max as int) base.init _numbers = List() for i in max _numbers.add(i) def getEnumerator as IEnumerator return _numbers.getEnumerator def getEnumerator as System.Collections.IEnumerator implements System.Collections.IEnumerable # TODO: the following typecast is not required in C# and should not be in Cobra as well # since IEnumerator