예제 #1
0
        public void AddEventToKey(string key, updateEvent fn)
        {
            KeyValue kv = retrieve(key);

            if (kv == null)
            {
                KeyValue newKv = new KeyValue(key, default(T));
                newKv.updateEventHandler += fn;
                dict.Add(newKv);
                return;
            }

            kv.updateEventHandler += fn;
        }
 var(updateEvent, config) = x;