Move the following foreach loop to classA:
foreach
classA
(Thing thing
in
classA.SomeList)
{
...
}
foreach (Thing thing in classA.SomeList) { ... }