according to @jdweng and @Events you can do this instead
Components[pcComp.ComponentType].Add(pcComp.name);
you can treat collections and arraylist as an ordinary array
unlike java
Arraylist.get(0) ir Arraylist.add(var)
CLICK HERE to find out more related problems solutions.