score:1

Accepted answer

Provided the keys are unique you could combine the two dictionaries as follows:

//Code

private Dictionary <int, aor.PhysicalObject> merger;

merger = Enumerable
         .Concat(  from a in log
                             .InitialState
                             .Agents
                             .Agent
                    select a
                 ,  from o in log
                              .InitialState
                              .Objects
                              .Object  
                     select o
                ).ToDictionary(d => Convert.ToInt32(d.id)
                                ,  d => d as aor.PhysicalObject);

Related Articles