In my SSIS package I have a object variable which gets intialize inside foreach loop container in Script Task. When I debug the code i see the values are adding to object. I'm using the same object variable outside foreach loop to read the values into arraylist in script task as follows: But when I debug the code it is showing the count as 0. Any thoughts please.
System.Collections.ArrayList names = new System.Collections.ArrayList();
names.Add(Dts.Variables["users"].Value);