using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; //using System.Collections.Immutable; namespace Pcb.Common { [Serializable] public class KeySaveDictionary : Dictionary { public KeySaveDictionary() { } public new TValue this[TKey key] { get { TValue defaultValue = default(TValue); this.TryGetValue(key, out defaultValue); return defaultValue; } set { base[key] = value; } } } }