public void UpdateOneRP(Guid id, float r, Point p) { var cell = Cells.GetOrAdd(id, CellItem.Create(r, p)); cell.R = r; cell.Position = p; Cells[id] = cell; }
public Guid AddOne(CellItem item) { return(Cells.AddOrUpdate(item.Id, item, (id, newItem) => item).Id); }