I was having a discussion with a co-worker over whether it is better to use a Dictionary and repopulate it whenever a result set changes or to just use linq loop over all elements in the list each time.
We're trying to map a parent / child relationship, and I suggested using the ParentID as the dictionary key, and the dictionary value as the custom object.
We will usually be needing to iterate over all parent / children and run down the list.
Is there any reason why you wouldn't want to use a Dictionary in this circumstance? if so what would you use instead