How to iterate through arraylist in dictionary

    bool poleAdded = false;

    Dictionary<GameObject, ArrayList> polesAttachedToFloor = new Dictionary<GameObject, ArrayList>();


            if (polesAttachedToFloor[floor, {i }).

So i need to store a gameobject with a possible of 4 gameobjects attached to it which explains why I went for an arraylist in a dictionary my problem is how to iterate through the arraylist in the dictionary?

var arrayList = polesAttachedToFloor [floor];
foreach(var item in arrayList)
{
    // do something with item
}