problem with enumerables in loop !

My for in loop is causing Application Exception: Argument is not enumerable (does not implement System.Collections.IEnumerable).

I’m going through a class of floats with for in loop like so:

class myClass {
var variables : float;
}

var theClass = new myClass();

for (var f : float in theClass) {

}

Is for in loop not good for classes? Aren’t they enumerable?

‘theClass’ must be a collection to iterate on.

What is the purpose of the for loop? Maybe there is a better way to do what you want to.