Thanks for the reply. There is no common pattern. In //Do something i need to turn on some Boolean properties. I looking for something in place of foreach loop.

Thanks