private readonly ConcurrentDictionary<int, string> Dict = new();
// 如何保证原子性?
public void AddMore(IEnumerable<(int, string)> items)
{
foreach ((int key, string? value) in items)
{
Dict.TryAdd(key, value);
}
}