public EntityDictionary(ImmutableDictionary <string, Entity> ents) { NameToEntity = ents.ToBuilder(); PosToName = ImmutableDictionary <Position, string> .Empty.ToBuilder(); PosToName.AddRange(NameToEntity.ToDictionary(kv => kv.Value.Pos, kv => kv.Key)); }