Ejemplo n.º 1
0
        public void Add(K key, V value)
        {
            //if (value == null) {
            //    throw new NullNotAllowedException("Null is not allowed as an Argument for " + nameof(Add));
            //}

            if (!myCheck(value))
            {
                return;
            }


            if (!ContainsKey(key))
            {
                myDictionary.Add(key, new HashSet <V>());
            }

            MyAddEvent?.Invoke(value);

            myDictionary[key].Add(value);
        }
Ejemplo n.º 2
0
 public void OnAdd()
 {
     MyAddEvent.Invoke();
 }