1
0
mirror of https://github.com/chylex/Backup-Essentials.git synced 2024-12-22 15:42:45 +01:00
Backup-Essentials/BackupEssentials/Utils/Collections/SafeDictionary.cs

21 lines
436 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace BackupEssentials.Utils.Collections{
class SafeDictionary<K,V> : Dictionary<K,V>{
public new V this[K key]{
get {
V value;
TryGetValue(key,out value);
return value;
}
set {
base[key] = value;
}
}
}
}