Move Code to Where the Data Is

Move the following foreach loop to classA:

?
 
1
2
3
4
foreach (Thing thing in classA.SomeList)
{
    ...
}
 
 

foreach (Thing thing in classA.SomeList)
{
    ...
}



Back to Refactoring Index

Back to Programming Index

Back to DELEY’S Home Page