This commit is contained in:
Archi
2024-03-17 03:47:08 +01:00
parent 4ffcea72b0
commit b7f34f0d5d

View File

@@ -101,7 +101,7 @@ public sealed class ObservableConcurrentDictionary<TKey, TValue> : IDictionary<T
ArgumentNullException.ThrowIfNull(key);
if (!TryAdd(key, value)) {
throw new ArgumentException();
throw new ArgumentException($"An item with the same key has already been added. Key: {key}");
}
}