All a for each loop does is iterate through a list/array of objects, returning an object of your type cast for each object. With that being said, you need a list/array to iterate through.
For me, if you're not wanting to use an array or list, then you could put the edits on a panel and loop through them that way.
EDIT: Looks like steve beat me to the punch
