public static ConcurrentDictionary <string, Building> Bootstrap(GameState state, KeyValueNode root) { var result = root.Select(x => new Building(state, x)).ToList(); var toReturn = new ConcurrentDictionary <string, Building>(); foreach (var building in result) { toReturn[building.Name] = building; } return(toReturn); }