unity iterate all child objects

Code Example - unity iterate all child objects

                
                        foreach(Transform child in transform)
{
    Something(child.gameObject);
}