for int workplaceArray Length i-- dic Add workplaceArray WorkplaceId w

1
2
3
4
5
6
7
8
for (int i = workplaceArray.Length - 1; i >= 0; i--)
{
dic.Add(workplaceArray[i].WorkplaceId, workplaceArray[i]);
}
for (int i = workplaceArray.Length - 1; i >= 1; i--)
{
dic[workplaceArray[i].ParentId]._childClientWorklaces.Add(workplaceArray[i]);
}