using System.Collections.Generic; namespace Unity.VisualScripting { public class FlexibleDictionary : Dictionary { public new TValue this[TKey key] { get { return base[key]; } set { if (ContainsKey(key)) { base[key] = value; } else { Add(key, value); } } } } }